Skip to content

Commit

Permalink
updated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
parthverma1 committed Jun 13, 2024
1 parent 1a4aa49 commit ed1db1d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/http2/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,9 @@ export class Http2Request extends EventEmitter {
delete this.requestHeaders.Connection
delete this.requestHeaders.Host

this.stream = this._client.request(this.requestHeaders)
this.registerListeners()


// process.nextTick(() => {
// Perform the request at the end of this tick to allow requests to remove blacklisted headers,
// since http2 headers are immutable once the request is created
this.stream = this._client.request(this.requestHeaders)
this.registerListeners()
// });
}

get _header () {
Expand Down

0 comments on commit ed1db1d

Please sign in to comment.