We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e5daea commit c8e9372Copy full SHA for c8e9372
1 file changed
http-parser.js
@@ -353,6 +353,13 @@ HTTPParser.prototype.HEADER = function () {
353
}
354
355
info.shouldKeepAlive = this.shouldKeepAlive();
356
+
357
+ // if we have a keep alive connection and no content length header,
358
+ // the body is streaming and should be read raw.
359
+ if (info.shouldKeepAlive && !hasContentLength) {
360
+ this.body_bytes = null;
361
+ }
362
363
//problem which also exists in original node: we should know skipBody before calling onHeadersComplete
364
var skipBody;
365
if (compatMode0_12) {
0 commit comments