diff --git a/lib/_stream_writable.js b/lib/_stream_writable.js index 916e9b87d9c1..411e36da8b0a 100644 --- a/lib/_stream_writable.js +++ b/lib/_stream_writable.js @@ -587,7 +587,7 @@ Writable.prototype.end = function(chunk, encoding, cb) { } if (chunk !== null && chunk !== undefined) - this.write(chunk, encoding); + this.write(chunk, encoding, cb); // .end() fully uncorks. if (state.corked) {