summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/http.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-05-29 23:05:45 +0200
committerGitHub <noreply@github.com>2023-05-29 23:05:45 +0200
commitd90a75c0361e2d2bf45d6605cb0c7cb6d1a335a7 (patch)
tree107f9f3be7a17511b53b99a36084ab172c3a04b8 /ext/node/polyfills/http.ts
parentfc6ba92024d76d44349c36dcedd13994116db45b (diff)
fix: use proper ALPN protocols if HTTP client is HTTP/1.1 only (#19303)
Closes https://github.com/denoland/deno/issues/16923 --------- Co-authored-by: crowlkats <crowlkats@toaxl.com> Co-authored-by: Matt Mastracci <matthew@mastracci.com>
Diffstat (limited to 'ext/node/polyfills/http.ts')
-rw-r--r--ext/node/polyfills/http.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/node/polyfills/http.ts b/ext/node/polyfills/http.ts
index 71186e4e7..3350e8f6e 100644
--- a/ext/node/polyfills/http.ts
+++ b/ext/node/polyfills/http.ts
@@ -641,6 +641,8 @@ class ClientRequest extends OutgoingMessage {
}
this._client.close();
const incoming = new IncomingMessageForClient(this.socket);
+ incoming.req = this;
+ this.res = incoming;
// TODO(@crowlKats):
// incoming.httpVersionMajor = versionMajor;