diff --git a/lib/multipart.js b/lib/multipart.js index 826be951ee..dc2a8cea88 100644 --- a/lib/multipart.js +++ b/lib/multipart.js @@ -183,7 +183,7 @@ Part.prototype.write = function(chunk) { var header = this.buffer.substr(0, offset).split(/: ?/); this.headers[header[0].toLowerCase()] = header[1]; this.buffer = this.buffer.substr(offset+2); - } else if (offset === false) { + } else if (offset === -1) { return; } }