Skip to content

Commit

Permalink
use object.body
Browse files Browse the repository at this point in the history
  • Loading branch information
james-elicx committed Jan 25, 2025
1 parent 8efd1a4 commit ba59861
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/api/bucket/[bucket]/[...path]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ export const GET = async (

headers.set('etag', object.httpEtag);

// TODO: Something broke with object.body here.
return new Response(await object.arrayBuffer(), { headers });
return new Response(object.body, { headers });
};

export const POST = async (
Expand Down

0 comments on commit ba59861

Please sign in to comment.