From 8393efe8e908dcf2fbcfc8217f54f6639e157dd5 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Sun, 9 Jun 2013 17:07:14 +0200 Subject: [PATCH] serve notes/multiple index document as html (closes #470) --- plugin/multiplex/index.js | 1 + plugin/notes-server/index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/plugin/multiplex/index.js b/plugin/multiplex/index.js index 35df8e39..a278026f 100644 --- a/plugin/multiplex/index.js +++ b/plugin/multiplex/index.js @@ -30,6 +30,7 @@ app.configure(function() { }); app.get("/", function(req, res) { + res.writeHead(200, {'Content-Type': 'text/html'}) fs.createReadStream(opts.baseDir + '/index.html').pipe(res); }); diff --git a/plugin/notes-server/index.js b/plugin/notes-server/index.js index 8643f5d3..8acac525 100644 --- a/plugin/notes-server/index.js +++ b/plugin/notes-server/index.js @@ -30,6 +30,7 @@ app.configure(function() { }); app.get("/", function(req, res) { + res.writeHead(200, {'Content-Type': 'text/html'}) fs.createReadStream(opts.baseDir + '/index.html').pipe(res); });