summaryrefslogtreecommitdiff
path: root/ext/fetch/26_fetch.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-06-13 14:11:27 +0200
committerGitHub <noreply@github.com>2023-06-13 14:11:27 +0200
commit07cbec4a822ea1b535511195217138d6e8b679ef (patch)
treece35b9aff3c6366eae4f630b1b3f73ae35a5ccdf /ext/fetch/26_fetch.js
parent44bd59c05e11f0d7fb0e3a5a521274b2f9f2164b (diff)
fix(ext/node): handle 'upgrade' responses (#19412)
This commit adds support for "upgrade" events in "node:http" "ClientRequest". Currently only "Websocket" upgrades are handled. Thanks to this change package like "npm:puppeteer" and "npm:discord" should work. Closes https://github.com/denoland/deno/issues/18913 Closes https://github.com/denoland/deno/issues/17847
Diffstat (limited to 'ext/fetch/26_fetch.js')
-rw-r--r--ext/fetch/26_fetch.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fetch/26_fetch.js b/ext/fetch/26_fetch.js
index 5084fab34..0dc06db02 100644
--- a/ext/fetch/26_fetch.js
+++ b/ext/fetch/26_fetch.js
@@ -86,7 +86,7 @@ function opFetch(method, url, headers, clientRid, hasBody, bodyLength, body) {
* @returns {Promise<{ status: number, statusText: string, headers: [string, string][], url: string, responseRid: number }>}
*/
function opFetchSend(rid) {
- return core.opAsync("op_fetch_send", rid);
+ return core.opAsync("op_fetch_send", rid, true);
}
/**