fix: add pdf content type support in GetPolicyURL
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user