Bug#956471: snapshot.debian.org: Missing Content-Type for .deb files?
Package: snapshot.debian.org
Hi,
First, thanks for maintaining snapshot.debian.org. I just accidentally
single-clicked on a ".deb" link in my browser and it attempted to
render the binary file within my browser window, ie:
debian-binary 1564357938 0 0 100644 4 `
2.0
control.tar.xz 1564357938 0 0 100644 1152 `
ý7zXZ��æÖ´FÀ¿€P!�������¶à'ÿ7]�¼}•ÀJ>yÂÌ&£Y>,¯ï
So, I think this is due to the lack of a Content-Type HTTP header and,
indeed, it seems to be missing when I try with curl:
$ curl -I http://snapshot.debian.org/archive/debian/20190729T040647Z/pool/main/a/apktool/apktool_2.4.0-1_all.deb
HTTP/1.1 200 OK
Date: Sat, 11 Apr 2020 17:52:30 GMT
Server: Apache
X-Content-Type-Options: nosniff
X-Frame-Options: sameorigin
Referrer-Policy: no-referrer
X-Xss-Protection: 1
Last-Modified: Mon, 29 Jul 2019 04:22:26 GMT
ETag: "33644-58eca3d44a480"
Content-Length: 210500
X-Clacks-Overhead: GNU Terry Pratchett
Cache-Control: max-age=31536000, public
X-Varnish: 18584565 20166281
Age: 164
Via: 1.1 varnish (Varnish/5.0)
connection: close
Accept-Ranges: bytes
I believe the correct value should be "application/vnd.debian.binary-
package" but anything generic like "application/x-binary" would work
for me.
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@debian.org 🍥 chris-lamb.co.uk
`-
Reply to: