diff --git a/server/api/proxy/img.png.ts b/server/api/proxy/img.png.ts index 763dbb7..37a319a 100644 --- a/server/api/proxy/img.png.ts +++ b/server/api/proxy/img.png.ts @@ -1,7 +1,7 @@ export default defineEventHandler(async (event) => { const { url: img, type = "encodeURIComponent" } = getQuery(event) if (img) { - const url = type === "encodeURIComponent" ? encodeURIComponent(img as string) : decodeBase64URL(img as string) + const url = type === "encodeURIComponent" ? decodeURIComponent(img as string) : decodeBase64URL(img as string) return sendProxy(event, url, { headers: { "Access-Control-Allow-Origin": "*",