From eae7ea9e0ba03c11d40d3c6172d7eff8b47a0581 Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Tue, 31 Oct 2023 17:24:50 +0100 Subject: [PATCH] archive fix: download of tar.gz had wrong mimetype and was uncompressed by the browser again --- clam/common/data.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clam/common/data.py b/clam/common/data.py index 69321b6..0d423ca 100644 --- a/clam/common/data.py +++ b/clam/common/data.py @@ -2991,8 +2991,7 @@ def buildarchive(project, path, fmt): if os.path.isfile(path + "output/" + project + ".tar.bz2"): os.unlink(path + "output/" + project + ".tar.bz2") elif fmt == 'tar.gz': - contenttype = 'application/x-tar' - contentencoding = 'gzip' + contenttype = 'application/gzip' command = shutil.which("tar") if not command: raise RuntimeError("tar not found")