From d0d7edbbf04b5dada4e8688843e314bd9c32e7ee Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:50:11 -0400 Subject: [PATCH] Remove HEAD responder from uploads/[[id]] route --- functions/api/uploads/[[id]].ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/functions/api/uploads/[[id]].ts b/functions/api/uploads/[[id]].ts index 41a2209..d3e2fdf 100644 --- a/functions/api/uploads/[[id]].ts +++ b/functions/api/uploads/[[id]].ts @@ -23,13 +23,3 @@ export async function onRequestGet(context: RequestContext) { .replaceAll("=", "")}` ); } - -export async function onRequestHead(context: RequestContext) { - const attachment = context.params.id as string; - - return new Response(null, { - status: (await context.env.DATA.get(`videoprocessing_${attachment}`)) - ? 409 - : 204, - }); -}