diff --git a/cloudcmd.js b/cloudcmd.js index 2bf47a7d..1d7a1a5f 100644 --- a/cloudcmd.js +++ b/cloudcmd.js @@ -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 */ diff --git a/lib/server/commander.js b/lib/server/commander.js index 74baea2b..2f77b923 100644 --- a/lib/server/commander.js +++ b/lib/server/commander.js @@ -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; }