From f03161698490ffbe467d51c45a80a0fc49943cfd Mon Sep 17 00:00:00 2001 From: jomo Date: Sat, 3 Jan 2015 18:21:14 +0100 Subject: [PATCH] fix content-length for index --- routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/index.js b/routes/index.js index d9d35bb..c67a6cb 100644 --- a/routes/index.js +++ b/routes/index.js @@ -11,7 +11,7 @@ module.exports = function(req, res) { config: config }); res.writeHead(200, { - "Content-Length": html.length, + "Content-Length": Buffer.byteLength(html, "UTF-8"), "Content-Type": "text/html; charset=utf-8" }); res.end(html);