Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Oct 26, 2020
1 parent 0592678 commit 57049ad
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/core/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ class Parser extends HTTPParser {

[HTTPParser.kOnHeadersComplete] (versionMajor, versionMinor, rawHeaders, method,
url, statusCode, statusMessage, upgrade, shouldKeepAlive) {
const { client, socket, bodyTimeout } = this
const { client, socket } = this

const request = client[kQueue][client[kRunningIdx]]

Expand Down Expand Up @@ -519,10 +519,6 @@ class Parser extends HTTPParser {
client[kReset] = true
}

if (bodyTimeout && bodyTimeout.refresh) {
bodyTimeout.refresh()
}

try {
if (request.onHeaders(statusCode, headers, statusCode < 200 ? null : socket[kResume]) === false) {
socket[kPause]()
Expand Down

0 comments on commit 57049ad

Please sign in to comment.