Skip to content

Commit

Permalink
fix: removed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-ippolito committed Nov 23, 2022
1 parent 551744b commit 91399ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/_http_server.js
Expand Up @@ -1017,9 +1017,7 @@ function parserOnIncoming(server, socket, state, req, keepAlive) {

let handled = false;

const isHttp11 = (req.httpVersionMajor === 1 && req.httpVersionMinor === 1);

if (isHttp11) {
if (req.httpVersionMajor === 1 && req.httpVersionMinor === 1) {
const isRequestsLimitSet = (
typeof server.maxRequestsPerSocket === 'number' &&
server.maxRequestsPerSocket > 0
Expand Down

0 comments on commit 91399ac

Please sign in to comment.