Skip to content

Commit

Permalink
Updated Buffer.write args
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski committed Jan 13, 2017
1 parent 69f0ba7 commit d1ad9ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmark/bench-multipart-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ function createMultipartBuffer(boundary, size) {
, tail = '\r\n--'+boundary+'--\r\n'
, buffer = new Buffer(size);

buffer.write(head, 'ascii', 0);
buffer.write(tail, 'ascii', buffer.length - tail.length);
buffer.write(head, 0, 'ascii');
buffer.write(tail, buffer.length - tail.length, 'ascii');
return buffer;
}

Expand Down

0 comments on commit d1ad9ff

Please sign in to comment.