Skip to content

Commit 8919028

Browse files
committed
fix: clone request instead of mutating
1 parent 87f556c commit 8919028

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/start/src/server/server-functions-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function createSingleFlightHeaders(sourceEvent: FetchEvent) {
200200
// unclear if h3 internals are available on all platforms but we need a way to
201201
// update request headers on the underlying H3 event.
202202

203-
const headers = sourceEvent.request.headers;
203+
const headers = new Headers(sourceEvent.request.headers);
204204
const cookies = parseCookies(sourceEvent.nativeEvent);
205205
const SetCookies = sourceEvent.response.headers.getSetCookie();
206206
headers.delete("cookie");

0 commit comments

Comments
 (0)