Skip to content

Commit

Permalink
chore: upload remaining
Browse files Browse the repository at this point in the history
  • Loading branch information
Nytelife26 authored and metcoder95 committed Jul 6, 2021
1 parent 02d33db commit 66814ab
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/http2client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});
}

Expand Down

0 comments on commit 66814ab

Please sign in to comment.