Remove HEAD responder from uploads/[[id]] route
This commit is contained in:
parent
cd75a8b817
commit
d0d7edbbf0
@ -23,13 +23,3 @@ export async function onRequestGet(context: RequestContext) {
|
|||||||
.replaceAll("=", "")}`
|
.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,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user