Skip to content

Commit 8f52142

Browse files
Aaron Heckmannry
Aaron Heckmann
authored andcommitted
look for -1 instead of false returned from string.indexOf
1 parent 173a8c9 commit 8f52142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/multipart.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Part.prototype.write = function(chunk) {
183183
var header = this.buffer.substr(0, offset).split(/: ?/);
184184
this.headers[header[0].toLowerCase()] = header[1];
185185
this.buffer = this.buffer.substr(offset+2);
186-
} else if (offset === false) {
186+
} else if (offset === -1) {
187187
return;
188188
}
189189
}

0 commit comments

Comments
 (0)