Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #29 from kriszyp/master

Update streamed files
  • Loading branch information...
commit 69092d350ab6cf16fa805b44e102a9a7887a08c7 2 parents 1f88cad + 0431346
@kriszyp kriszyp authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  media.js
  2. +1 −1  media/url-encoded.js
  3. +1 −1  package.json
View
2  media.js
@@ -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);
});
}
};
View
2  media/url-encoded.js
@@ -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
View
2  package.json
@@ -1,6 +1,6 @@
{
"name": "pintura",
- "version": "0.3.3",
+ "version": "0.3.5",
"author": "Kris Zyp",
"email": "kriszyp@gmail.com",
"description": "JSGI-based RESTful JSON/JavaScript server",

0 comments on commit 69092d3

Please sign in to comment.
Something went wrong with that request. Please try again.