librarian sends tar.gz file with wrong Content-Type headers: text/html

Bug #814769 reported by Stephen A. Goss
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
High
Unassigned

Bug Description

This URL: http://launchpad.net/flufl.bounce/trunk/0.91/+download/flufl.bounce-0.91.tar.gz 303's to this URL: http://launchpadlibrarian.net/75313819/flufl.bounce-0.91.tar.gz which delivers the file, but with a Content-Type header of "text/html" which is wrong. Attempting to build mailman 3.0 fails when retrieving this file:

  Getting distribution for 'flufl.bounce'.
Error: Unexpected HTML page found at http://launchpad.net/flufl.bounce/trunk/0.91/+download/flufl.bounce-0.91.tar.gz

It's failing because the headers are wrong and is assuming that the webserver is responding by sending HTML instead of binary data. This is easy to verify with curl:

$ curl http://launchpadlibrarian.net/75313819/flufl.bounce-0.91.tar.gz -I
HTTP/1.1 200 OK
Date: Fri, 22 Jul 2011 18:18:15 GMT
Server: TwistedWeb/11.0.0
Content-Length: 148276
Accept-Ranges: bytes
Last-Modified: Fri, 15 Jul 2011 22:17:10 GMT
Cache-Control: max-age=31536000, public
Content-Type: text/html
Age: 566
X-Cache: HIT from banana.canonical.com
X-Cache-Lookup: HIT from banana.canonical.com:3128
Via: 1.0 banana.canonical.com:3128 (squid/2.7.STABLE7)
Via: 1.1 launchpadlibrarian.net
Vary: Accept-Encoding

Deryck Hodge (deryck)
Changed in launchpad:
status: New → Triaged
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.