Skip to content

Commit e4c1ffa

Browse files
committed
fix: page response missing CSP and Link headers when return promise in load (#11801)
1 parent c9b2e65 commit e4c1ffa

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.changeset/tidy-timers-perform.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
fix: page response missing CSP and Link headers when return promise in `load`

packages/kit/src/runtime/server/page/render.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,9 +511,7 @@ export async function render_response({
511511
type: 'bytes'
512512
}),
513513
{
514-
headers: {
515-
'content-type': 'text/html'
516-
}
514+
headers
517515
}
518516
);
519517
}

0 commit comments

Comments
 (0)