fix content-length for index

This commit is contained in:
jomo 2015-01-03 18:21:14 +01:00
parent 4a3b635166
commit f031616984

View File

@ -11,7 +11,7 @@ module.exports = function(req, res) {
config: config config: config
}); });
res.writeHead(200, { res.writeHead(200, {
"Content-Length": html.length, "Content-Length": Buffer.byteLength(html, "UTF-8"),
"Content-Type": "text/html; charset=utf-8" "Content-Type": "text/html; charset=utf-8"
}); });
res.end(html); res.end(html);