Ry4an Brase <ry4an-hg@ry4an.org> [Mon, 20 Sep 2010 14:56:08 -0500] rev 12570
Correct Content-Type header values for archive downloads.
The content type for both .tar.gz and .tar.bz2 downloads was
application/x-tar, which is correct for .tar files when no
Content-Encoding is present, but is not correct for .tar.gz and .tar.bz2
files unless Content-Encoding is set to gzip or x-bzip2, respectively.
However, setting Content-Encoding causes browsers to undo that encoding
during download, when a .gz or .bz2 file is usually the desired
artifact. Omitting the Content-Encoding header is preferred to avoid
having browsers uncompress non-render-able files.
Additionally, the Content-Disposition line indicates a final desired
filename with .tar.gz or .tar.bz2 extension which makes providing a
Content-Encoding header inappropriate.
With the current configuration browsers (Chrome and Firefox thus far)
are registering the application/x-tar Content-Type and not .tar
extension and appending that extension, yielding filename.tar.gz.tar as
a final on-disk artifact. This was originally reported here:
http://stackoverflow.com/questions/3753659
I've changed the .tar.gz and .tar.bz2 Content-Type values to
application/x-gzip and application/x-bzip2, respectively. Which yields
correctly named download artifacts on Firefox, Chrome, and IE.
Matt Mackall <mpm@selenic.com> [Mon, 27 Sep 2010 10:47:36 -0500] rev 12569
merge with iin
Wagner Bruna <wbruna@yahoo.com> [Sat, 25 Sep 2010 22:53:31 -0300] rev 12568
i18n-pt_BR: update to new Portuguese ortography
Wagner Bruna <wbruna@yahoo.com> [Sat, 25 Sep 2010 22:53:27 -0300] rev 12567
i18n-pt_BR: minor rewording
Wagner Bruna <wbruna@yahoo.com> [Sat, 25 Sep 2010 22:53:21 -0300] rev 12566
i18n-pt_BR: assorted typo fixes
Wagner Bruna <wbruna@softwareexpress.com.br> [Fri, 24 Sep 2010 19:47:50 -0300] rev 12565
merge with i18n
Wagner Bruna <wbruna@softwareexpress.com.br> [Fri, 24 Sep 2010 19:47:00 -0300] rev 12564
i18n-pt_BR: synchronized with
84ceedcfeb6a
Wagner Bruna <wbruna@softwareexpress.com.br> [Fri, 24 Sep 2010 19:26:01 -0300] rev 12563
merge with i18n stable
Christoph Mewes <christoph@webvariants.de> [Fri, 24 Sep 2010 02:17:54 +0200] rev 12562
i18n-de: parentrevspec extension
Christoph Mewes <christoph@webvariants.de> [Fri, 24 Sep 2010 02:08:26 +0200] rev 12561
i18n-de: pager extension and missing parts of extdiff
Christoph Mewes <christoph@webvariants.de> [Fri, 24 Sep 2010 01:41:56 +0200] rev 12560
i18n-de: added missing strings in acl
Christoph Mewes <christoph@webvariants.de> [Thu, 23 Sep 2010 01:19:40 +0200] rev 12559
i18n-de: minor changes
Christoph Mewes <christoph@webvariants.de> [Thu, 23 Sep 2010 01:09:09 +0200] rev 12558
i18n-de: notify extension
Christoph Mewes <christoph@webvariants.de> [Thu, 23 Sep 2010 00:28:45 +0200] rev 12557
i18n-de: mq extension