diff options
Diffstat (limited to 'ext/node')
-rw-r--r-- | ext/node/polyfills/http.ts | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/ext/node/polyfills/http.ts b/ext/node/polyfills/http.ts index 0529ccca5..a07a2c91d 100644 --- a/ext/node/polyfills/http.ts +++ b/ext/node/polyfills/http.ts @@ -595,13 +595,7 @@ class ClientRequest extends OutgoingMessage { (async () => { try { const [res, _] = await Promise.all([ - core.opAsync( - "op_fetch_send", - this._req.requestRid, - /* false because we want to have access to actual Response, - not the bytes stream of response (because we need to handle upgrades) */ - false, - ), + core.opAsync("op_fetch_send", this._req.requestRid), (async () => { if (this._bodyWriteRid) { try { @@ -700,10 +694,7 @@ class ClientRequest extends OutgoingMessage { this.emit("close"); } else { { - const responseRid = core.ops.op_fetch_response_into_byte_stream( - res.responseRid, - ); - incoming._bodyRid = responseRid; + incoming._bodyRid = res.responseRid; } this.emit("response", incoming); } |