Skip to content

Commit

Permalink
Merge pull request #29 from kriszyp/master
Browse files Browse the repository at this point in the history
Update streamed files
  • Loading branch information
kriszyp committed Oct 29, 2013
2 parents 1f88cad + 0431346 commit 69092d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion media.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Media.optimumMedia = function(source, acceptTypeHeader){
// loadFile could return a promise
forEach: function(each){
return when(exports.loadFile(alternate), function(file){
file.forEach(each);
return file.forEach(each);
});
}
};
Expand Down
2 changes: 1 addition & 1 deletion media/url-encoded.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Media({
var props = {};
for(var i = 0; i < parts.length; i++){
var nameValue = parts[i].split("=");
var value = decodeURIComponent(nameValue[1].replace(/\+/g, ' '));
var value = decodeURIComponent(nameValue[1] && nameValue[1].replace(/\+/g, ' '));
var key = decodeURIComponent(nameValue[0].replace(/\+/g, ' '));
value = stringToValue(value);
// N.B. multiple same-named keys should be stored as an array
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pintura",
"version": "0.3.3",
"version": "0.3.5",
"author": "Kris Zyp",
"email": "[email protected]",
"description": "JSGI-based RESTful JSON/JavaScript server",
Expand Down

0 comments on commit 69092d3

Please sign in to comment.