diff options
Diffstat (limited to 'ext/http/01_http.js')
-rw-r--r-- | ext/http/01_http.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/http/01_http.js b/ext/http/01_http.js index 332763451..34457ab0b 100644 --- a/ext/http/01_http.js +++ b/ext/http/01_http.js @@ -15,7 +15,7 @@ fromInnerResponse, } = window.__bootstrap.fetch; const core = window.Deno.core; - const { BadResourcePrototype, InterruptedPrototype } = core; + const { BadResourcePrototype, InterruptedPrototype, ops } = core; const { ReadableStream, ReadableStreamPrototype } = window.__bootstrap.streams; const abortSignal = window.__bootstrap.abortSignal; @@ -126,7 +126,7 @@ const innerRequest = newInnerRequest( method, url, - () => core.opSync("op_http_headers", streamRid), + () => ops.op_http_headers(streamRid), body !== null ? new InnerBody(body) : null, false, ); @@ -438,7 +438,7 @@ ); } - const accept = core.opSync("op_http_websocket_accept_header", websocketKey); + const accept = ops.op_http_websocket_accept_header(websocketKey); const r = newInnerResponse(101); r.headerList = [ |