Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding end(chunk) support.

  • Loading branch information...
commit e05a0142b04cf558a9951fa044f3b7d58c604554 1 parent 4c1a91f
Mikeal Rogers mikeal authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  main.js
3  main.js
View
@@ -179,7 +179,8 @@ File.prototype.write = function (chunk, encoding) {
this.emit('data', chunk)
}
}
-File.prototype.end = function () {
+File.prototype.end = function (chunk) {
+ if (chunk) this.write(chunk)
if (this.buffering) {
this.ended = true
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.