Skip to content

Commit

Permalink
Updated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
parthverma1 committed Jun 13, 2024
1 parent 5fd6a69 commit 1a4aa49
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/http2/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export class Http2Request extends EventEmitter {
this.requestHeaders = Object.fromEntries(Object.entries(this.requestHeaders).filter(([key]) => !(options.blacklistHeaders ?? []).includes(key.toLowerCase())))

// Remove blacklisted http/1 headers
// Note: we continue to allow sending host header, however it is not required in HTTP/2, infact discouraged in the spec, but some servers require it (see: https://github.com/nodejs/node/issues/29858)
delete this.requestHeaders.Connection
delete this.requestHeaders.Host

Expand Down

0 comments on commit 1a4aa49

Please sign in to comment.