diff --git a/lib/server/rest.js b/lib/server/rest.js index 4568c470..0d641476 100644 --- a/lib/server/rest.js +++ b/lib/server/rest.js @@ -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) {