fix: update content type handling for release.gpg

This commit is contained in:
2025-11-18 16:13:05 +08:00
parent fc2c46a9df
commit 3685b2129a

View File

@@ -61,7 +61,7 @@ func contentType(_ *hooks.RequestContext, locatorPath string) string {
case strings.HasSuffix(clean, "release.gpg"):
return "application/pgp-signature"
case strings.Contains(clean, "/dists/") &&
(strings.HasSuffix(clean, "/release") || strings.HasSuffix(clean, "/inrelease")):
(strings.HasSuffix(clean, "/release") || strings.HasSuffix(clean, "/inrelease") || strings.HasSuffix(clean, "/release.gpg")):
return "text/plain"
default:
return ""