Server correctly sends text/html MIME type and response code 200 for the root index.

This commit is contained in:
Chris Moeller 2014-09-13 05:54:17 +01:00
parent b32520b1f9
commit 1076ee4e06

View File

@ -47,6 +47,8 @@ function index(req, res, next) {
require("../package.json"), require("../package.json"),
config config
); );
res.setHeader("Content-Type", "text/html");
res.writeHead(200);
res.end(_.template( res.end(_.template(
file, file,
data data