From 86dacb61a665ea4a1516e5597722cfa40dc27324 Mon Sep 17 00:00:00 2001 From: yoge Date: Tue, 31 Mar 2026 19:45:54 +0800 Subject: [PATCH] fix: add pdf content type support in GetPolicyURL --- pkg/oss/policy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/oss/policy.go b/pkg/oss/policy.go index a286eed..c1d8a2a 100644 --- a/pkg/oss/policy.go +++ b/pkg/oss/policy.go @@ -95,6 +95,8 @@ func GetPolicyURL(ctx context.Context, path string) (string, error) { contentType = "image/tiff" case ".svg": contentType = "image/svg+xml" + case ".pdf": + contentType = "application/pdf" default: return "", fmt.Errorf("unsupported file type: %s", ext) }