Skip to content

Commit b59e107

Browse files
committed
Refactor header storage
1 parent 20425d7 commit b59e107

File tree

5 files changed

+562
-236
lines changed

5 files changed

+562
-236
lines changed

src/workerd/api/global-scope.c++

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,6 @@ kj::Promise<DeferredProxy<void>> ServiceWorkerGlobalScope::request(kj::HttpMetho
211211
}
212212
}
213213

214-
auto jsHeaders = js.alloc<Headers>(js, newHeaders, Headers::Guard::REQUEST);
215-
216214
auto jsRequest = js.alloc<Request>(js, method, url, Request::Redirect::MANUAL,
217215
js.alloc<Headers>(js, newHeaders, Headers::Guard::REQUEST),
218216
js.alloc<Fetcher>(IoContext::NEXT_CLIENT_CHANNEL, Fetcher::RequiresHostAndProtocol::YES),

0 commit comments

Comments
 (0)