From ed1db1da8723cb3d6ac4ee07fb872542d880e21c Mon Sep 17 00:00:00 2001 From: Parth Verma Date: Thu, 13 Jun 2024 14:08:33 -0700 Subject: [PATCH] updated comments --- lib/http2/request.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/http2/request.ts b/lib/http2/request.ts index 07c454095..a081bf30a 100644 --- a/lib/http2/request.ts +++ b/lib/http2/request.ts @@ -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 () {