jomo 10 年之前
父節點
當前提交
b40ab60d50
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      routes/index.js

+ 2 - 1
routes/index.js

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