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
1 changed files with 2 additions and 0 deletions

View File

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