This commit is contained in:
Pooya Parsa 2020-11-03 21:28:46 +01:00
parent d441d79c6c
commit 69b810a58e

View File

@ -5,7 +5,7 @@ module.exports = async (req, res) => {
try {
const { html, status, headers } = await render(req.url, { req, res })
for (const header in headers) {
res.setHeadeer(header, headers[header])
res.setHeader(header, headers[header])
}
res.status(status)
res.end(html)