fix: convert Buffer to Uint8Array for Response body in org icon endpoint

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Arthur Belleville 2026-04-02 22:07:46 +02:00
parent 421dc877e2
commit 9679a5816a
No known key found for this signature in database

View file

@ -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",