minor changes

This commit is contained in:
coderaiser 2013-02-05 03:48:32 -05:00
parent 79c11fd3b8
commit 92ecef3368

View file

@ -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
});
});