Permalink
Browse files

return the destination stream, fixes issue#23

  • Loading branch information...
substack committed Aug 28, 2012
1 parent a070244 commit 20c261b7b8b9dbc0015aef94c88081b355fabba0
Showing with 1 addition and 0 deletions.
  1. +1 −0 main.js
View
@@ -178,6 +178,7 @@ File.prototype.pipe = function (dest, options) {
this.destOptions = options
dest.emit('pipe', this)
// stream.Stream.prototype.pipe.call(this, dest, options)
+ return dest
}
File.prototype.write = function (chunk, encoding) {
if (encoding) chunk = chunk.toString(encoding)

0 comments on commit 20c261b

Please sign in to comment.