Skip to content

Commit

Permalink
archive fix: download of tar.gz had wrong mimetype and was uncompress…
Browse files Browse the repository at this point in the history
…ed by the browser again
  • Loading branch information
proycon committed Oct 31, 2023
1 parent b6bfb4f commit eae7ea9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clam/common/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit eae7ea9

Please sign in to comment.