From 69631848cf5cdb28305141846b8a99f9bce61174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Z=C3=A4ske?= Date: Wed, 18 Jun 2025 00:00:51 +0200 Subject: [PATCH] Fixed frontend returning corrupt binary data --- frontend/src/routes/api/[...path]/+server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/api/[...path]/+server.ts b/frontend/src/routes/api/[...path]/+server.ts index 815d4a7..b7fcdbf 100644 --- a/frontend/src/routes/api/[...path]/+server.ts +++ b/frontend/src/routes/api/[...path]/+server.ts @@ -85,7 +85,7 @@ async function handleRequest( }); } - const responseData = await response.text(); + const responseData = await response.bytes(); // Create a new Headers object without the 'set-cookie' header const cleanHeaders = new Headers(response.headers); cleanHeaders.delete('set-cookie');