Commit b2dd89ff authored by Boris Kocherov's avatar Boris Kocherov

zipfilestorage.js: enable compression

parent 9097c251
This diff is collapsed.
/*global jIO, RSVP, Blob, JSZip */
/*jslint nomen: true*/
/*jslint nomen: true, indent: 2*/
/*
* Copyright 2016, Nexedi SA
......@@ -204,7 +204,9 @@
return loadZip(this)
.push(function (zip) {
if (archive_request) {
return zip.generateAsync({type: "blob"});
return zip.generateAsync({type: "blob",
compression: "DEFLATE"
});
}
if (id !== "" && !(zip.files.hasOwnProperty(id) && zip.files[id].dir)) {
throw new jIO.util.jIOError("Cannot find document", 404);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment