Your message dated Sun, 22 Nov 2026 16:48:20 +0000
with message-id <[email protected]>
and subject line Re: Bug#956471: snapshot.debian.org: Missing Content-Type for 
.deb files?
has caused the Debian Bug report #956471,
regarding snapshot.debian.org: Missing Content-Type for .deb files?
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
956471: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956471
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
     `. `'`      [email protected] 🍥 chris-lamb.co.uk
       `-

--- End Message ---
--- Begin Message ---
On Sat, Apr 11, 2020 at 06:57:35PM +0100, Chris Lamb wrote:
> 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.

We fixed this by serving the files as attachments, which also helped to
preserve their original name instead of the hashsum when we introduced
redirects. So this should always cause the browser to download it.

Kind regards
Philipp Kern

--- End Message ---

Reply via email to