We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac89c44 commit f4a3e08Copy full SHA for f4a3e08
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, 'ascii');
+ this.boundary.write(str, 4, 'ascii');
63
this.lookbehind = new Buffer(this.boundary.length+8);
64
this.state = S.START;
65
0 commit comments