From 6bd450155c36f9e3dbaa8e4d6261e5e447af0a9a Mon Sep 17 00:00:00 2001 From: isaacs Date: Mon, 11 Feb 2013 15:45:53 -0800 Subject: [PATCH] stream: Empty strings/buffers do not signal EOF any longer --- lib/_stream_readable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index 8c5081f3b26..416706363ad 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -229,7 +229,7 @@ Readable.prototype.read = function(n) { else ret = null; - if (ret === null || (!state.objectMode && ret.length === 0)) { + if (ret === null) { state.needReadable = true; n = 0; }