Skip to content

Commit

Permalink
fix(media proxy): fix 304 response code with body error
Browse files Browse the repository at this point in the history
was accidently sending a 304 with body. introduced in c53c88d
  • Loading branch information
zyachel committed Jun 3, 2023
1 parent 736d680 commit c610ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/api/media_proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)

if (cachedMedia) {
res.setHeader('x-cached', 'true');
res.status(304).send(cachedMedia);
res.send(cachedMedia);
return;
}

Expand Down

0 comments on commit c610ef4

Please sign in to comment.