Comparing version 2.1.7 to 2.1.8
@@ -666,2 +666,6 @@ /*! | ||
// The first open boundary remove \r\n | ||
var open = context.ranges[0].open; | ||
context.ranges[0].open = open.replace(/^\r\n/, ''); | ||
// The last add closed boundary | ||
@@ -925,4 +929,2 @@ context.ranges[context.ranges.length - 1].close = close; | ||
// Next | ||
next(); | ||
// Destroy file stream | ||
@@ -932,2 +934,5 @@ destroy(file); | ||
// Next | ||
file.on('close', next); | ||
// Pipe stream | ||
@@ -934,0 +939,0 @@ file.pipe(stream, { end: false }); |
@@ -80,3 +80,3 @@ /*! | ||
*/ | ||
normalize: function normalize(path) { | ||
normalize: function(path) { | ||
// \a\b\.\c\.\d ==> /a/b/./c/./d | ||
@@ -96,3 +96,3 @@ path = path.replace(/\\/g, '/'); | ||
// transfer path | ||
// Transfer path | ||
var src = path; | ||
@@ -108,3 +108,3 @@ // DOUBLE_DOT_RE matches a/b/c//../d path correctly only if replace // with / first | ||
// break | ||
// Break | ||
if (path === src) { | ||
@@ -111,0 +111,0 @@ break; |
{ | ||
"name": "file-send", | ||
"version": "2.1.7", | ||
"version": "2.1.8", | ||
"description": "A http file send", | ||
@@ -47,3 +47,3 @@ "author": { | ||
"after": "^0.8.2", | ||
"chai": "^4.1.1", | ||
"chai": "^4.1.2", | ||
"superagent": "^3.6.0" | ||
@@ -50,0 +50,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
46081
1300