formidable
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -165,3 +165,3 @@ if (global.GENTLY) require = GENTLY.hijack(require); | ||
if (!part.filename) { | ||
if (part.filename === undefined) { | ||
var value = '' | ||
@@ -297,6 +297,3 @@ , decoder = new StringDecoder(this.encoding); | ||
var filename = self._fileName(headerValue); | ||
if (filename !== undefined) { | ||
part.filename = filename || part.name; | ||
} | ||
part.filename = self._fileName(headerValue); | ||
} else if (headerField == 'content-type') { | ||
@@ -303,0 +300,0 @@ part.mime = headerValue; |
{ | ||
"name": "formidable", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"dependencies": {}, | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
module.exports['generic.http'] = [ | ||
{type: 'file', name: 'upload', filename: 'upload', fixture: 'plain.txt'}, | ||
{type: 'file', name: 'upload', filename: '', fixture: 'plain.txt'}, | ||
]; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2888152
1947