mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
minor changes
This commit is contained in:
parent
79c11fd3b8
commit
92ecef3368
1 changed files with 9 additions and 9 deletions
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
NO_JS = CloudFunc.NoJS,
|
||||
FS = CloudFunc.Fs,
|
||||
INDEX = HTMLDIR + 'index.html',
|
||||
INDEX = null,
|
||||
REQUEST = 'request',
|
||||
RESPONSE = 'response',
|
||||
|
||||
|
|
@ -35,12 +35,12 @@
|
|||
exports.sendContent = function(pParams){
|
||||
var lRet = Util.checkObj(pParams,
|
||||
['processing'],
|
||||
[REQUEST, RESPONSE]);
|
||||
[REQUEST, RESPONSE, 'index']);
|
||||
|
||||
if(lRet){
|
||||
var lReq = pParams.request,
|
||||
lRes = pParams.response,
|
||||
lPath = getCleanPath(lReq);
|
||||
var p = pParams,
|
||||
lPath = getCleanPath(p.request),
|
||||
INDEX = p.index;
|
||||
|
||||
IndexProcessingFunc = pParams.processing;
|
||||
|
||||
|
|
@ -51,15 +51,15 @@
|
|||
else
|
||||
main.sendFile({
|
||||
name : lPath,
|
||||
request : lReq,
|
||||
response : lRes
|
||||
request : p.request,
|
||||
response : p.response
|
||||
});
|
||||
else
|
||||
sendResponse({
|
||||
status : NOT_FOUND,
|
||||
data : pError.toString(),
|
||||
request : lReq,
|
||||
response: lRes
|
||||
request : p.request,
|
||||
response : p.response
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue