[Hackage] #498: package downloads confuse IE6

Hackage trac at galois.com
Fri Feb 13 05:53:42 EST 2009


#498: package downloads confuse IE6
--------------------------------+-------------------------------------------
  Reporter:  duncan             |        Owner:     
      Type:  defect             |       Status:  new
  Priority:  normal             |    Milestone:     
 Component:  hackageDB website  |      Version:     
  Severity:  normal             |     Keywords:     
Difficulty:  normal             |   Ghcversion:     
  Platform:  Windows            |  
--------------------------------+-------------------------------------------
 In IE6 the `.tar.gz` packages from the Hackage website get downloaded and
 saved by the browser with the wrong name. For example `foo-1.0.tar.gz`
 gets saved as `foo-1.0.tar.tar`.

 Currently the apache config for the hackage website is such that it send
 these headers for `.tar.gz` files:

 {{{
 Content-Type: application/x-tar
 Content-Encoding: x-gzip
 }}}

 This apparently confuses IE6. This has been [http://mail-
 archives.apache.org/mod_mbox/httpd-
 dev/200302.mbox/%3c5.2.0.9.2.20030204125407.02768620 at pop3.rowe-
 clan.net%3e. reported elsewhere previously].

 So we are looking for help in finding a workaround. We want to adjust our
 apache config so that for the IE6 user agent it reports a mime time and
 encoding that will make IE6 save the file properly. For example we guess
 that sending `Content-Type: application/x-gzip` and no `Content-Encoding`
 would make IE6 do the right thing.

 So how do we actually configure apache to do this? Can we get some help
 testing it?

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/498>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects


More information about the cabal-devel mailing list