summaryrefslogtreecommitdiff
path: root/lib/_http_server.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_http_server.js')
-rw-r--r--lib/_http_server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_http_server.js b/lib/_http_server.js
index 02cd7a81a9..53bf30b3d2 100644
--- a/lib/_http_server.js
+++ b/lib/_http_server.js
@@ -755,7 +755,7 @@ function resetHeadersTimeoutOnReqEnd() {
const parser = this.socket.parser;
// Parser can be null if the socket was destroyed
// in that case, there is nothing to do.
- if (parser !== null) {
+ if (parser) {
parser.parsingHeadersStart = nowDate();
}
}