From 9679a5816a79278ca3c9f75b4bab9f69bb5fbaf1 Mon Sep 17 00:00:00 2001 From: Arthur Belleville Date: Thu, 2 Apr 2026 22:07:46 +0200 Subject: [PATCH] fix: convert Buffer to Uint8Array for Response body in org icon endpoint Co-Authored-By: Claude Sonnet 4.6 (1M context) --- apps/api/src/routers/public.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/routers/public.ts b/apps/api/src/routers/public.ts index ca37bd8..dc5b8ac 100644 --- a/apps/api/src/routers/public.ts +++ b/apps/api/src/routers/public.ts @@ -160,7 +160,7 @@ const getOrgIconHandler = factory.createHandlers(async (c) => { return c.redirect(defaultPath, 302); } - return new Response(result.buffer, { + return new Response(new Uint8Array(result.buffer), { headers: { "Content-Type": result.contentType, "Cache-Control": "public, max-age=86400",