Skip to content

Commit

Permalink
Fixed filtering of invalid transport headers in http2 request
Browse files Browse the repository at this point in the history
  • Loading branch information
parthverma1 committed Jul 22, 2024
1 parent bb1809b commit a9d723f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http2/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class Http2Request extends EventEmitter {

this.requestHeaders = Object.fromEntries(
Object.entries(this.requestHeaders)
.filter(([key]) => !connectionHeaders.includes(key))
.filter(([key]) => !connectionHeaders.includes(key.toLowerCase()))
)

this.stream = this._client.request(this.requestHeaders, { endStream: false })
Expand Down

0 comments on commit a9d723f

Please sign in to comment.