Comment 1 for bug 920651

Revision history for this message
Aaron Bentley (abentley) wrote :

The librarian should be sending the correct MIME type, but we should also provide a Content-Disposition header, to encourage the browser to download, rather than display, the page.

$ wget -S http://launchpad.net/pyopenssl/main/0.11/+download/pyOpenSSL-0.11-py3.2-win32.egg
--2012-01-23 15:57:51-- http://launchpad.net/pyopenssl/main/0.11/+download/pyOpenSSL-0.11-py3.2-win32.egg
Resolving launchpad.net... 91.189.89.222, 91.189.89.223
Connecting to launchpad.net|91.189.89.222|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 303 See Other
  Date: Mon, 23 Jan 2012 20:57:51 GMT
  Server: zope.server.http (HTTP)
  X-Powered-By: Zope (www.zope.org), Python (www.python.org)
  X-Content-Type-Warning: guessed from content
  Content-Length: 0
  Location: http://launchpadlibrarian.net/58498845/pyOpenSSL-0.11-py3.2-win32.egg
  Vary: Cookie,Authorization,Accept-Encoding
  Content-Type: text/plain;charset=utf-8
  Via: 1.0 launchpad.net
  Keep-Alive: timeout=15, max=100
  Connection: Keep-Alive
Location: http://launchpadlibrarian.net/58498845/pyOpenSSL-0.11-py3.2-win32.egg [following]
--2012-01-23 15:57:52-- http://launchpadlibrarian.net/58498845/pyOpenSSL-0.11-py3.2-win32.egg
Resolving launchpadlibrarian.net... 91.189.89.228, 91.189.89.229
Connecting to launchpadlibrarian.net|91.189.89.228|:80... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Date: Mon, 23 Jan 2012 20:23:14 GMT
  Server: TwistedWeb/11.1.0
  Content-Length: 773266
  Accept-Ranges: bytes
  Last-Modified: Mon, 01 Nov 2010 22:33:14 GMT
  Cache-Control: max-age=31536000, public
  Content-Type: text/plain
  Age: 2078
  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.0 launchpadlibrarian.net
  Vary: Accept-Encoding
  Keep-Alive: timeout=15, max=100
  Connection: Keep-Alive
Length: 773266 (755K) [text/plain]
Saving to: `pyOpenSSL-0.11-py3.2-win32.egg'

100%[======================================>] 773,266 237K/s in 3.2s

2012-01-23 15:57:55 (237 KB/s) - `pyOpenSSL-0.11-py3.2-win32.egg' saved [773266/773266]