summaryrefslogtreecommitdiff
path: root/ext/http/01_http.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/http/01_http.js')
-rw-r--r--ext/http/01_http.js9
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;
}