Mercurial > kallithea
changeset 1238:438524e84c57
fixed archives headers, Thanks to Thomas Waldmann
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 09 Apr 2011 20:46:15 +0200 |
parents | f7bb54f8c20f |
children | 3343977bc934 |
files | rhodecode/controllers/files.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/controllers/files.py Sat Apr 09 20:15:18 2011 +0200 +++ b/rhodecode/controllers/files.py Sat Apr 09 20:46:15 2011 +0200 @@ -157,8 +157,8 @@ 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):