aboutsummaryrefslogtreecommitdiff
path: root/plugin/notes-server
diff options
context:
space:
mode:
authorHakim El Hattab <hakim@squarespace.com>2013-06-09 17:07:14 +0200
committerHakim El Hattab <hakim@squarespace.com>2013-06-09 17:07:14 +0200
commit8393efe8e908dcf2fbcfc8217f54f6639e157dd5 (patch)
treec57758e4c8bf0c0da6e2caa67d0548dc8116e916 /plugin/notes-server
parentf5a379b8a1266859c747e3bb1feb0d768bbf074f (diff)
downloadfosdem-2018-presentation-8393efe8e908dcf2fbcfc8217f54f6639e157dd5.tar
fosdem-2018-presentation-8393efe8e908dcf2fbcfc8217f54f6639e157dd5.tar.gz
serve notes/multiple index document as html (closes #470)
Diffstat (limited to 'plugin/notes-server')
-rw-r--r--plugin/notes-server/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/notes-server/index.js b/plugin/notes-server/index.js
index 8643f5d..8acac52 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);
});