소스 검색

serve notes/multiple index document as html (closes #470)

Hakim El Hattab 11 년 전
부모
커밋
8393efe8e9
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      plugin/multiplex/index.js
  2. 1 0
      plugin/notes-server/index.js

+ 1 - 0
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);
 });
 

+ 1 - 0
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);
 });