Refactored a bunch of shit
All checks were successful
Docker Deploy / build-and-push (push) Successful in 3m57s
All checks were successful
Docker Deploy / build-and-push (push) Successful in 3m57s
This commit is contained in:
@@ -52,10 +52,8 @@ export const GET: APIRoute = async ({ params }) => {
|
||||
case ".gif":
|
||||
contentType = "image/gif";
|
||||
break;
|
||||
case ".svg":
|
||||
contentType = "image/svg+xml";
|
||||
break;
|
||||
// WebP is intentionally omitted as it is not supported in PDF generation
|
||||
// SVG excluded to prevent stored XSS
|
||||
// WebP omitted — not supported in PDF generation
|
||||
}
|
||||
|
||||
return new Response(fileContent, {
|
||||
|
||||
Reference in New Issue
Block a user