fix(rest) zip file if !to

This commit is contained in:
coderaiser 2014-07-04 04:36:21 -04:00
parent ec1a7c5f99
commit 2bee80d764

View file

@ -340,9 +340,10 @@
sendError(params, p.data);
} else {
from = mellow.convertPath(files.from);
to = mellow.convertPath(files.to);
if (!to)
if (files.to)
to = mellow.convertPath(files.to);
else
to = from + '.zip';
pack.gzip(from, to, function(error) {