summaryrefslogtreecommitdiff
path: root/ext/http/01_http.js
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2022-07-04 07:41:52 +0530
committerGitHub <noreply@github.com>2022-07-04 07:41:52 +0530
commita2643ae7bd92d006ac099483b14f709c0b5ec2ed (patch)
tree9321e0a203283110e2ac5b6235c9f979661e2896 /ext/http/01_http.js
parent2c2126918bafadca43e6b4bb8daaca40afc2ee98 (diff)
perf(ext/http): lazy load headers (#15055)
Diffstat (limited to 'ext/http/01_http.js')
-rw-r--r--ext/http/01_http.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/http/01_http.js b/ext/http/01_http.js
index de546285d..877342428 100644
--- a/ext/http/01_http.js
+++ b/ext/http/01_http.js
@@ -111,7 +111,7 @@
return null;
}
- const [streamRid, method, headersList, url] = nextRequest;
+ const [streamRid, method, url] = nextRequest;
SetPrototypeAdd(this.managedResources, streamRid);
/** @type {ReadableStream<Uint8Array> | undefined} */
@@ -126,7 +126,7 @@
const innerRequest = newInnerRequest(
method,
url,
- headersList,
+ () => core.opSync("op_http_headers", streamRid),
body !== null ? new InnerBody(body) : null,
false,
);