We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e5daea commit 170668dCopy full SHA for 170668d
http-parser.js
@@ -246,7 +246,6 @@ HTTPParser.prototype.REQUEST_LINE = function () {
246
this.info.url = match[2];
247
this.info.versionMajor = +match[3];
248
this.info.versionMinor = +match[4];
249
- this.body_bytes = 0;
250
this.state = 'HEADER';
251
};
252
@@ -353,6 +352,7 @@ HTTPParser.prototype.HEADER = function () {
353
352
}
354
355
info.shouldKeepAlive = this.shouldKeepAlive();
+
356
//problem which also exists in original node: we should know skipBody before calling onHeadersComplete
357
var skipBody;
358
if (compatMode0_12) {
0 commit comments