mirror of https://github.com/nodejs/node.git
stream: Empty strings/buffers do not signal EOF any longer
parent
f5f9e8da71
commit
6bd450155c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue