Skip to content

Commit f4a3e08

Browse files
author
Jonathan Dahan
committed
fix deprecated Buffer.write call for node 0.11.x
1 parent ac89c44 commit f4a3e08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/multipart_parser.js

+2-2
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--', 'ascii', 0);
62-
this.boundary.write(str, 'ascii', 4);
61+
this.boundary.write('\r\n--', 0, 'ascii');
62+
this.boundary.write(str, 4, 'ascii');
6363
this.lookbehind = new Buffer(this.boundary.length+8);
6464
this.state = S.START;
6565

0 commit comments

Comments
 (0)