From bd5b9d8712a8d3953174273095756bd63bdfef2e Mon Sep 17 00:00:00 2001 From: Jakub Knejzlik Date: Tue, 19 May 2015 17:45:54 +0200 Subject: [PATCH] zero length pipes to passThrough instead of ending the stream --- pullstream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pullstream.js b/pullstream.js index 2c46e7f..29529da 100644 --- a/pullstream.js +++ b/pullstream.js @@ -61,7 +61,7 @@ PullStream.prototype.pullUpTo = over([ PullStream.prototype.pipe = over([ [over.numberOptionalWithDefault(null), over.object, function (len, destStream) { - if (!len) { + if (len == null) { return PassThrough.prototype.pipe.call(this, destStream); }