Add Content-Type text/html header

This commit is contained in:
Sébastien Chopin 2016-11-20 14:49:34 +01:00
parent aeefce6985
commit cb20e417fa
2 changed files with 2 additions and 1 deletions

View File

@ -125,6 +125,7 @@ class Nuxt {
if (error) {
res.statusCode = context.nuxt.error.statusCode || 500
}
res.setHeader('Content-Type', 'text/html; charset=utf-8')
res.end(html, 'utf8')
})
.catch((err) => {

View File

@ -1,6 +1,6 @@
{
"name": "nuxt",
"version": "0.5.2",
"version": "0.5.3",
"description": "A minimalistic framework for server-rendered Vue.js applications (inspired by Next.js)",
"main": "index.js",
"license": "MIT",