From 66814abc457c05dc395de02d252c2c3759c3a949 Mon Sep 17 00:00:00 2001 From: Nytelife26 Date: Wed, 19 May 2021 23:09:49 +0100 Subject: [PATCH] chore: upload remaining --- lib/http2client.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/http2client.js b/lib/http2client.js index d9f4c741e20..5ac49b8e5fc 100644 --- a/lib/http2client.js +++ b/lib/http2client.js @@ -56,10 +56,15 @@ function http2Connect(client) { } }) .then((res) => { - // upgrade successful, validate response and use http2 + console.log("hi"); + console.log(res); }) .catch((err) => { - // continue as normal + if (err.code === "UND_ERR_SOCKET" && err.message === "bad upgrade") { + // do not upgrade + } else { + throw err; + } }); }