fix(media proxy): fix 304 response code with body error

was accidently sending a 304 with body. introduced in c53c88d
This commit is contained in:
zyachel 2023-06-03 22:20:56 +05:30
parent 736d680243
commit c610ef4d1b

View file

@ -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;
}