Skip to content

Commit f811118

Browse files
author
Jonathan Dahan
committed
remove unnecessary specification of encoding
1 parent f4a3e08 commit f811118

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/multipart_parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ MultipartParser.stateToString = function(stateNumber) {
5858

5959
MultipartParser.prototype.initWithBoundary = function(str) {
6060
this.boundary = new Buffer(str.length+4);
61-
this.boundary.write('\r\n--', 0, 'ascii');
62-
this.boundary.write(str, 4, 'ascii');
61+
this.boundary.write('\r\n--', 0);
62+
this.boundary.write(str, 4);
6363
this.lookbehind = new Buffer(this.boundary.length+8);
6464
this.state = S.START;
6565

0 commit comments

Comments
 (0)