Skip to content

Commit

Permalink
fix: remove insecureparser
Browse files Browse the repository at this point in the history
Fixes: #699
  • Loading branch information
ronag committed Apr 8, 2021
1 parent ea204f6 commit 3d1027f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ const {
kStrictContentLength
} = require('./core/symbols')

const insecureHTTPParser = process.execArgv.includes('--insecure-http-parser')

function getServerName (client, host) {
return (
util.getServerName(host) ||
Expand Down Expand Up @@ -451,12 +449,6 @@ class Parser {
this.bufferSize = 0
this.bufferPtr = null
this.bufferView = null

/* istanbul ignore next: not used */
if (insecureHTTPParser === true) {
this.inst.llhttp_set_lenient_headers(this.ptr, 1)
}

this.client = client
this.socket = socket
this.timeout = null
Expand Down

0 comments on commit 3d1027f

Please sign in to comment.