# HG changeset patch # User Marcin Kuzminski # Date 2011-04-09 18:46:15 # Node ID 438524e84c57ff3a2ebbf9797f22ab5b4a703f29 # Parent f7bb54f8c20fd640bf2bfc1b8f21d1a5d5130f39 fixed archives headers, Thanks to Thomas Waldmann diff --git a/rhodecode/controllers/files.py b/rhodecode/controllers/files.py --- a/rhodecode/controllers/files.py +++ b/rhodecode/controllers/files.py @@ -157,8 +157,8 @@ class FilesController(BaseController): def archivefile(self, repo_name, revision, fileformat): archive_specs = { - '.tar.bz2': ('application/x-tar', 'tbz2'), - '.tar.gz': ('application/x-tar', 'tgz'), + '.tar.bz2': ('application/x-bzip2', 'tbz2'), + '.tar.gz': ('application/x-gzip', 'tgz'), '.zip': ('application/zip', 'zip'), } if not archive_specs.has_key(fileformat):