stream: Empty strings/buffers do not signal EOF any longer

pull/24504/head
isaacs 2013-02-11 15:45:53 -08:00
parent f5f9e8da71
commit 6bd450155c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}