From 3685b2129a805d073757293e8e51e5cf6a8d3c49 Mon Sep 17 00:00:00 2001 From: Rogee Date: Tue, 18 Nov 2025 16:13:05 +0800 Subject: [PATCH] fix: update content type handling for release.gpg --- internal/hubmodule/debian/hooks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/hubmodule/debian/hooks.go b/internal/hubmodule/debian/hooks.go index 8d59bc0..5eb9014 100644 --- a/internal/hubmodule/debian/hooks.go +++ b/internal/hubmodule/debian/hooks.go @@ -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 ""