hgweb mime-types for archives

Matt Mackall mpm at selenic.com
Wed Apr 4 12:53:00 CDT 2007


On Wed, Apr 04, 2007 at 01:22:09PM -0400, Aidan Van Dyk wrote:
> * Matt Mackall <mpm at selenic.com> [070404 13:13]:
>  
> > If I download files from Apache (which is about as close to
> > authoritative as I think we can get), I see:
> > 
> > tar.gz -> application/x-gzip
> > tar.bz2 -> application/x-tar
> > zip -> application/zip
> > 
> > And downloading Firefox:
> > 
> > tar.gz -> application/x-gzip
> 
> And interestingly, from the debian mime-types:
> 
> 	#  Note: Compression schemes like "gzip", "bzip", and "compress" are not
> 	#  actually "mime-types".  They are "encodings" and hence must _not_
> 	#  have entries in this file to map their extensions.  The "mime-type" of an
> 	#  encoded file refers to the type of data that has been encoded, not
> 	#  the type of the encoding.
> 
> And they configure:
> 	application/x-gtar                              gtar tgz taz
> 	application/x-tar                               tar
> 
> and no entries for .gz or .bz2
> 
> And the apache "magic" in debian calls things genericly
> "application/octect-stream", with a "x-gzip" encoding.

While Debian is probably "technically correct", that doesn't
necessarily make them interoperable.

One more datapoint:

Google Code:

tar.gz -> application/x-gzip

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list