Skip to content

Commit da090ce

Browse files
committed
fix response header and applied header merging (fixes redirects that were missing location header)
1 parent a37aa12 commit da090ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/adapter/run/routing.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ export async function runNextRouting(
359359
response = new Response(finalResponse.body, {
360360
...finalResponse,
361361
headers: {
362-
...finalResponse.headers,
362+
...Object.fromEntries(finalResponse.headers.entries()),
363363
...maybeResponse.headers,
364364
},
365365
status: maybeResponse.status ?? finalResponse.status ?? 200,
@@ -381,7 +381,7 @@ export async function runNextRouting(
381381
response = new Response(finalResponse.body, {
382382
...finalResponse,
383383
headers: {
384-
...finalResponse.headers,
384+
...Object.fromEntries(finalResponse.headers.entries()),
385385
...maybeResponse.headers,
386386
},
387387
status: maybeResponse.status ?? finalResponse.status ?? 200,

0 commit comments

Comments
 (0)