Skip to content

Commit

Permalink
fix: Pass rendered.headers to writeHead as object (#176)
Browse files Browse the repository at this point in the history
Co-authored-by: James Hegedus <jthegedus@hey.com>
  • Loading branch information
Tim Strucken and jthegedus authored Aug 7, 2022
1 parent 9a990a0 commit 11d90cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/files/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ export default async function svelteKit(request, response) {
const body = await rendered.text();

return rendered
? response.writeHead(rendered.status, rendered.headers).end(body)
? response.writeHead(rendered.status, Object.fromEntries(rendered.headers)).end(body)
: response.writeHead(404, 'Not Found').end();
}

0 comments on commit 11d90cb

Please sign in to comment.