fix: update content type handling for release.gpg
This commit is contained in:
@@ -61,7 +61,7 @@ func contentType(_ *hooks.RequestContext, locatorPath string) string {
|
|||||||
case strings.HasSuffix(clean, "release.gpg"):
|
case strings.HasSuffix(clean, "release.gpg"):
|
||||||
return "application/pgp-signature"
|
return "application/pgp-signature"
|
||||||
case strings.Contains(clean, "/dists/") &&
|
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"
|
return "text/plain"
|
||||||
default:
|
default:
|
||||||
return ""
|
return ""
|
||||||
|
|||||||
Reference in New Issue
Block a user