minor changes

This commit is contained in:
coderaiser 2013-02-05 05:39:32 -05:00
parent 931bb7979a
commit 4eceaf91e9
2 changed files with 5 additions and 2 deletions

View file

@ -21,7 +21,7 @@
REQUEST = 'request',
RESPONSE = 'response',
INDEX = DIR + 'html/index.html';
INDEX = DIR + 'html' + main.SLASH + 'index.html';
/* reinit main dir os if we on
* Win32 should be backslashes */

View file

@ -352,7 +352,10 @@
function getCleanPath(pReq){
var lPath = getPath(pReq),
lRet = Util.removeStr(lPath, [NO_JS, FS]) || '/';
lRet = Util.removeStr(lPath, [NO_JS, FS]) || main.SLASH;
if(lRet !== '/')
lRet = lRet += main.SLASH;
return lRet;
}