diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-04-04 12:37:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-04 12:37:56 +0200 |
commit | c341dbee5d8924988533b88d5a7900b63baf27d3 (patch) | |
tree | b96f14a542b4b930c6bb13be9e26aac2b45c7c2d /ext/http/01_http.js | |
parent | 62c566469710ba610df764df0ee6560295532e4b (diff) |
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`
Diffstat (limited to 'ext/http/01_http.js')
-rw-r--r-- | ext/http/01_http.js | 9 |
1 files changed, 1 insertions, 8 deletions
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; } |