Set Content-Type on main page. ServerDensity needs this for some reason.

This commit is contained in:
Nick Martin
2012-01-23 23:22:10 -08:00
parent e7eb9e6929
commit 4de4bbfd45

View File

@@ -59,6 +59,7 @@ var run = function (bundle_dir) {
var app_html = fs.readFileSync(path.join(bundle_dir, 'app.html'));
var unsupported_html = fs.readFileSync(path.join(bundle_dir, 'unsupported.html'));
app.use(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
if (supported_browser(req.headers['user-agent']))
res.write(app_html);
else