diff --git a/.changeset/olive-socks-thank.md b/.changeset/olive-socks-thank.md new file mode 100644 index 000000000000..dac2f1de5688 --- /dev/null +++ b/.changeset/olive-socks-thank.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/adapter-netlify": patch +--- + +return the correct headers diff --git a/packages/adapter-netlify/files/entry.js b/packages/adapter-netlify/files/entry.js index b5c0fa8c5508..4ad61b319f55 100644 --- a/packages/adapter-netlify/files/entry.js +++ b/packages/adapter-netlify/files/entry.js @@ -29,7 +29,7 @@ export async function handler(event) { return { isBase64Encoded: false, statusCode: rendered.status, - ...splitHeaders(headers), + ...splitHeaders(rendered.headers), body: rendered.body }; }