mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 10:14:13 +00:00
fix(main) sendResponse: query always undefined
This commit is contained in:
parent
1c0f2f6ad5
commit
86581245a9
2 changed files with 3 additions and 2 deletions
|
|
@ -244,6 +244,7 @@
|
|||
main.sendFile(p);
|
||||
} else if (isJSON) {
|
||||
p.name +='.json';
|
||||
p.query = query;
|
||||
json = Util.stringifyJSON(data);
|
||||
main.sendResponse(p, json, NOT_LOG);
|
||||
} else
|
||||
|
|
|
|||
|
|
@ -334,7 +334,7 @@
|
|||
* @param pName - имя отсылаемого файла
|
||||
*/
|
||||
function sendResponse(params, data, notLog) {
|
||||
var p, query, isGzip, head,
|
||||
var p, isGzip, head,
|
||||
ret = checkParams(params);
|
||||
|
||||
if (ret) {
|
||||
|
|
@ -346,7 +346,7 @@
|
|||
name : p.name,
|
||||
cache : p.cache,
|
||||
gzip : isGzip,
|
||||
query : query
|
||||
query : p.query
|
||||
});
|
||||
|
||||
setHeader(head, p.response);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue