fixed bug with sending response on query other then json on /fs url

This commit is contained in:
coderaiser 2013-04-21 07:23:27 -04:00
parent 19c4d93786
commit dd55d922b0
3 changed files with 4 additions and 1 deletions

View file

@ -311,7 +311,7 @@
p.name +='.json';
main.sendResponse(p);
}
else if(!lQuery){ /* get back html*/
else{ /* get back html*/
p.name = Minify.allowed.html ? Minify.getName(INDEX) : INDEX;
fs.readFile(p.name, function(pError, pData){
if(!pError){