]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-snapshot.c
ui-snapshot: actually compress zip archives
[ps-cgit] / ui-snapshot.c
index 4136b3eb8d05001b614b4f3ce3423dd897d4db0e..dbb556484a611040866915a5091ef0574cd9b865 100644 (file)
@@ -86,6 +86,7 @@ static int make_snapshot(const struct cgit_snapshot_format *format,
        }
        args.tree = commit->tree;
        args.time = commit->date;
+       args.compression_level = Z_DEFAULT_COMPRESSION;
        ctx.page.mimetype = xstrdup(format->mimetype);
        ctx.page.filename = xstrdup(filename);
        cgit_print_http_headers(&ctx);