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:
parent
421dc877e2
commit
9679a5816a
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue