Skip to content

map .asc to application/pgp-signature MIME type, closes #31

/etc/mime.types specifies .asc as application/pgp-keys, but an GnuPG ASCII file can be keys, encrypted content, and/or a signature. On this site, .asc is used only for application/pgp-signature. This site uses .asc files extensively, so it is worth maintaining this quirk here. For example, every APK has a .asc, and the entry.json also has entry.json.asc.

I manually confirmed this on staging:

 ~ $ curl --head https://staging.f-droid.org/repo/entry.json.asc
HTTP/1.1 200 OK
Date: Wed, 03 Apr 2024 17:28:58 GMT
Server: Apache/2.4.57 (Debian)
Last-Modified: Thu, 10 Nov 2022 01:12:01 GMT
ETag: "293-5ed1375e04c36"
Accept-Ranges: bytes
Content-Length: 659
Content-Type: application/pgp-signature

Merge request reports