mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
refactor(main) sendResponce: add data
This commit is contained in:
parent
2c5254dc55
commit
f7f51e386c
1 changed files with 3 additions and 2 deletions
|
|
@ -275,6 +275,7 @@
|
|||
|
||||
if (lRet) {
|
||||
p = pParams,
|
||||
data = p.data || pData,
|
||||
lQuery = getQuery(p.request),
|
||||
/* download, json */
|
||||
lGzip = isGZIP(p.request),
|
||||
|
|
@ -288,7 +289,7 @@
|
|||
setHeader(lHead, p.response);
|
||||
|
||||
if (!pNotLog)
|
||||
Util.log(pData || p.data);
|
||||
Util.log(data);
|
||||
|
||||
/* если браузер поддерживает gzip-сжатие - сжимаем данные*/
|
||||
Util.ifExec(!lGzip,
|
||||
|
|
@ -305,7 +306,7 @@
|
|||
},
|
||||
|
||||
function(pCallBack) {
|
||||
zlib.gzip (p.data || pData, Util.call(gzipData, {
|
||||
zlib.gzip (data, Util.call(gzipData, {
|
||||
callback : pCallBack
|
||||
}));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue