diff options
author | Hakim El Hattab <hakim@squarespace.com> | 2013-06-09 17:07:14 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim@squarespace.com> | 2013-06-09 17:07:14 +0200 |
commit | 8393efe8e908dcf2fbcfc8217f54f6639e157dd5 (patch) | |
tree | c57758e4c8bf0c0da6e2caa67d0548dc8116e916 /plugin/multiplex | |
parent | f5a379b8a1266859c747e3bb1feb0d768bbf074f (diff) | |
download | fosdem-2018-presentation-8393efe8e908dcf2fbcfc8217f54f6639e157dd5.tar fosdem-2018-presentation-8393efe8e908dcf2fbcfc8217f54f6639e157dd5.tar.gz |
serve notes/multiple index document as html (closes #470)
Diffstat (limited to 'plugin/multiplex')
-rw-r--r-- | plugin/multiplex/index.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/multiplex/index.js b/plugin/multiplex/index.js index 35df8e3..a278026 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); }); |