mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(main) exports: add mainSetHeader
This commit is contained in:
parent
f03cf93ab5
commit
1761a61a81
1 changed files with 2 additions and 2 deletions
|
|
@ -62,6 +62,7 @@
|
|||
exports.generateHeaders = generateHeaders,
|
||||
exports.getQuery = getQuery,
|
||||
exports.isGZIP = isGZIP,
|
||||
exports.mainSetHeader = mainSetHeader,
|
||||
|
||||
exports.sendFile = sendFile,
|
||||
exports.sendResponse = sendResponse,
|
||||
|
|
@ -261,7 +262,7 @@
|
|||
pipe.create({
|
||||
from : p.name,
|
||||
write : p.response,
|
||||
zip : lGzip,
|
||||
gzip : lGzip,
|
||||
callback: function(error) {
|
||||
if (error)
|
||||
sendError(pParams, error);
|
||||
|
|
@ -285,7 +286,6 @@
|
|||
|
||||
if (lRet) {
|
||||
p = pParams;
|
||||
pParams.zip = true;
|
||||
data = p.data || pData;
|
||||
lGzip = isGZIP(p.request);
|
||||
lHead = generateHeaders({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue