Преглед на файлове

fix content-length for index

jomo преди 11 години
родител
ревизия
f031616984
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      routes/index.js

+ 1 - 1
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);