fix index page path

This commit is contained in:
加里 2014-09-11 11:41:23 +08:00
parent 8d743e6276
commit 3319b91934
2 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@ module.exports = {
}, },
shouldInterceptHttpsReq :function(req){ shouldInterceptHttpsReq :function(req){
return true;
} }
}; };

View File

@ -246,7 +246,7 @@ function proxyWebServer(port){
}); });
app.use(function(req,res,next){ app.use(function(req,res,next){
var indexHTML = fs.readFileSync("./web/index.html",{encoding:"utf8"}); var indexHTML = fs.readFileSync(__dirname + "/web/index.html",{encoding:"utf8"});
if(req.url == "/"){ if(req.url == "/"){
res.setHeader("Content-Type", "text/html"); res.setHeader("Content-Type", "text/html");