Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/hgweb_mod.py @ 2361:d3adb454c5a9
Fix automatic decompression of tarballs with Firefox.
The encoding was set to gzip/bzip2, so Firefox (correctly) assumed, that this
has to be "decoded" (i.e. decompressed).
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Thu, 01 Jun 2006 18:36:32 +0200 |
parents | a392eaa81f29 |
children | d351a3be3371 |
comparison
equal
deleted
inserted
replaced
2360:25ec4981883e | 2361:d3adb454c5a9 |
---|---|
622 parent=self.siblings(cl.parents(n), cl.rev), | 622 parent=self.siblings(cl.parents(n), cl.rev), |
623 child=self.siblings(cl.children(n), cl.rev), | 623 child=self.siblings(cl.children(n), cl.rev), |
624 diff=diff) | 624 diff=diff) |
625 | 625 |
626 archive_specs = { | 626 archive_specs = { |
627 'bz2': ('application/x-tar', 'tbz2', '.tar.bz2', 'x-bzip2'), | 627 'bz2': ('application/x-tar', 'tbz2', '.tar.bz2', None), |
628 'gz': ('application/x-tar', 'tgz', '.tar.gz', 'x-gzip'), | 628 'gz': ('application/x-tar', 'tgz', '.tar.gz', None), |
629 'zip': ('application/zip', 'zip', '.zip', None), | 629 'zip': ('application/zip', 'zip', '.zip', None), |
630 } | 630 } |
631 | 631 |
632 def archive(self, req, cnode, type): | 632 def archive(self, req, cnode, type): |
633 reponame = re.sub(r"\W+", "-", os.path.basename(self.reponame)) | 633 reponame = re.sub(r"\W+", "-", os.path.basename(self.reponame)) |