From 7f4e39e08b38ee6926bcd7e57e6270e579d78607 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Wed, 5 Jun 2024 16:35:25 -1000 Subject: [PATCH] fix(api): :bug: Explicitely set Content-Encoding to an empty value in proxy to avoid Traefik v3.0 errors --- server/api/media/proxy/:id.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/api/media/proxy/:id.ts b/server/api/media/proxy/:id.ts index bc1b433c..eed54c76 100644 --- a/server/api/media/proxy/:id.ts +++ b/server/api/media/proxy/:id.ts @@ -45,12 +45,13 @@ export default (app: Hono) => }, }); - return response(await media.arrayBuffer(), media.status, { + return response(media.body, media.status, { "Content-Type": media.headers.get("Content-Type") || "application/octet-stream", "Content-Length": media.headers.get("Content-Length") || "0", "Content-Security-Policy": "", + "Content-Encoding": "", }); }, );