Skip to content

Commit 3461fdc

Browse files
jangxxfbbdev
authored andcommitted
Fix a bug where the Request would only emit a single data event/pipe only 32k byte
1 parent b734494 commit 3461fdc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/streams.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ InputStream.prototype._data = function (chunk) {
5151
};
5252

5353
InputStream.prototype._read = function (size) {
54+
this._canPush = true;
5455
while (this._buffer.length && (this._canPush = this.push(this._buffer.shift())));
5556
};
5657

0 commit comments

Comments
 (0)