From c610ef4d1be39c122715a0eb200155537e7d6abf Mon Sep 17 00:00:00 2001 From: zyachel Date: Sat, 3 Jun 2023 22:20:56 +0530 Subject: [PATCH] fix(media proxy): fix 304 response code with body error was accidently sending a 304 with body. introduced in c53c88d --- src/pages/api/media_proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/api/media_proxy.ts b/src/pages/api/media_proxy.ts index 56461fb..a2fc29f 100644 --- a/src/pages/api/media_proxy.ts +++ b/src/pages/api/media_proxy.ts @@ -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; }