bugfix for issue #29

This commit is contained in:
OttoMao
2015-07-31 14:00:34 +08:00
parent 6975138c96
commit 13b0db906a
8 changed files with 16 additions and 12 deletions

View File

@@ -98,7 +98,7 @@ function webInterface(config){
ipAddress : ipAddress || "127.0.0.1"
};
if(req.url == "/"){
if( url.parse(req.url).pathname == "/"){
res.setHeader("Content-Type", "text/html");
res.end(juicer(indexTpl, opt));
}else{