refactor(rest) zip -> gzip

This commit is contained in:
coderaiser 2013-11-26 14:15:26 +00:00
parent 83d6113263
commit bea1e974c4
2 changed files with 2 additions and 2 deletions

View file

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

View file

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