From 1076ee4e06c43a45f7bf561bb9966a5750143be5 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Sat, 13 Sep 2014 05:54:17 +0100 Subject: [PATCH] Server correctly sends text/html MIME type and response code 200 for the root index. --- src/server.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server.js b/src/server.js index 0a12a754..3005072c 100644 --- a/src/server.js +++ b/src/server.js @@ -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