mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(rest) zip -> gzip
This commit is contained in:
parent
83d6113263
commit
bea1e974c4
2 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@
|
|||
Util.exec(p.callback, pError);
|
||||
};
|
||||
|
||||
if (p.zip) {
|
||||
if (p.gzip) {
|
||||
lZlib = zlib.createGzip();
|
||||
lRead.on('error', lError);
|
||||
lRead = lRead.pipe(lZlib);
|
||||
|
|
|
|||
|
|
@ -399,7 +399,7 @@
|
|||
pipe.create({
|
||||
from : lFiles.from,
|
||||
to : lFiles.to || lFiles.from + '.zip',
|
||||
zip : true,
|
||||
gzip : true,
|
||||
callback : function(pError) {
|
||||
checkSendError(pError, pParams, function() {
|
||||
var lName = path.basename(lFiles.from);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue