Skip to content

Commit

Permalink
Merge pull request #16 from abdulmoizeng/master
Browse files Browse the repository at this point in the history
fix: Breaking stream due to default encoding NodeJS 8.x update Buffer…
  • Loading branch information
lbdremy committed Mar 13, 2018
2 parents 572925e + f389106 commit 99fd8f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function CSVStream(options){

// Buffer
this._buffer = new Buffer(0);
this._encoding = '';
this._encoding = undefined; // Encoding needs to be undefined for Buffer.toString method

// CSV parser
this._parser = new Parser(options);
Expand Down

0 comments on commit 99fd8f4

Please sign in to comment.