From c341dbee5d8924988533b88d5a7900b63baf27d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 4 Apr 2023 12:37:56 +0200 Subject: refactor: remove remaining references to "flash" server (#18580) Follow up to https://github.com/denoland/deno/pull/18578 We will need to do another pass cleaning up `ext/fetch/23_request.js` --- ext/http/01_http.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'ext/http') diff --git a/ext/http/01_http.js b/ext/http/01_http.js index ab0d6626a..f434acd3c 100644 --- a/ext/http/01_http.js +++ b/ext/http/01_http.js @@ -14,7 +14,6 @@ import { toInnerResponse, } from "ext:deno_fetch/23_response.js"; import { - _flash, fromInnerRequest, newInnerRequest, toInnerRequest, @@ -134,7 +133,7 @@ class HttpConn { } const innerRequest = newInnerRequest( - () => method, + method, url, () => ops.op_http_headers(streamRid), body !== null ? new InnerBody(body) : null, @@ -467,12 +466,6 @@ function upgradeWebSocket(request, options = {}) { } function upgradeHttp(req) { - if (req[_flash]) { - throw new TypeError( - "Flash requests can not be upgraded with `upgradeHttp`. Use `upgradeHttpRaw` instead.", - ); - } - req[_deferred] = new Deferred(); return req[_deferred].promise; } -- cgit v1.2.3