fix(main) sendResponse: query always undefined

This commit is contained in:
coderaiser 2014-04-23 07:42:43 -04:00
parent 1c0f2f6ad5
commit 86581245a9
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

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