From d6266b363cfb2afc349eb1e96fb5fc51c96db3a8 Mon Sep 17 00:00:00 2001 From: Austin Hallock Date: Mon, 26 Jan 2015 15:00:31 -0800 Subject: [PATCH] fix len=0 pull bug https://github.com/EvanOxfeld/node-pullstream/issues/10 --- pullstream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pullstream.js b/pullstream.js index 2c46e7f..162c69d 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); }