mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
minor changes
This commit is contained in:
parent
931bb7979a
commit
4eceaf91e9
2 changed files with 5 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue