Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove HEAD responder from uploads/[[id]] route
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent cd75a8b commit d0d7edb
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions functions/api/uploads/[[id]].ts
Expand Up @@ -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,
});
}

0 comments on commit d0d7edb

Please sign in to comment.