Skip to content

Commit

Permalink
fix: page response missing CSP and Link headers when return promise i…
Browse files Browse the repository at this point in the history
…n `load` (sveltejs#11801)
  • Loading branch information
0x221A committed Jun 30, 2024
1 parent c9b2e65 commit e4c1ffa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/tidy-timers-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

fix: page response missing CSP and Link headers when return promise in `load`
4 changes: 1 addition & 3 deletions packages/kit/src/runtime/server/page/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,7 @@ export async function render_response({
type: 'bytes'
}),
{
headers: {
'content-type': 'text/html'
}
headers
}
);
}
Expand Down

0 comments on commit e4c1ffa

Please sign in to comment.