Skip to content

Commit

Permalink
[fix] adapter-netlify: return the correct headers (#1913)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanJPNM authored Jul 15, 2021
1 parent 073fc3b commit 67ca3a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/olive-socks-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sveltejs/adapter-netlify": patch
---

return the correct headers
2 changes: 1 addition & 1 deletion packages/adapter-netlify/files/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function handler(event) {
return {
isBase64Encoded: false,
statusCode: rendered.status,
...splitHeaders(headers),
...splitHeaders(rendered.headers),
body: rendered.body
};
}
Expand Down

0 comments on commit 67ca3a3

Please sign in to comment.