[Catalog-sig] PyPI doesn't serve the correct mimetypes

Antoine Pitrou solipsis at pitrou.net
Sun Feb 10 18:00:54 CET 2013


$ curl -I
http://pypi.python.org/packages/source/z/zope.interface/zope.interface-4.0.3.tar.gz
HTTP/1.1 200 OK
Server: nginx/1.1.19
Date: Sun, 10 Feb 2013 16:59:29 GMT
Content-Type: application/octet-stream
Content-Length: 140124
Last-Modified: Mon, 31 Dec 2012 18:23:12 GMT
Connection: keep-alive
Accept-Ranges: bytes


But:

 [>>>] mimetypes.guess_type("foo.tar.gz")
 ('application/x-tar', 'gzip')

Regards

Antoine.




More information about the Catalog-SIG mailing list