We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 44c686a + f811118 commit cf2ca5bCopy full SHA for cf2ca5b
lib/multipart_parser.js
@@ -58,8 +58,8 @@ MultipartParser.stateToString = function(stateNumber) {
58
59
MultipartParser.prototype.initWithBoundary = function(str) {
60
this.boundary = new Buffer(str.length+4);
61
- this.boundary.write('\r\n--', 'ascii', 0);
62
- this.boundary.write(str, 'ascii', 4);
+ this.boundary.write('\r\n--', 0);
+ this.boundary.write(str, 4);
63
this.lookbehind = new Buffer(this.boundary.length+8);
64
this.state = S.START;
65
0 commit comments