fix interactions, apparently cfw doesn't speak Buffer

This commit is contained in:
41666 2022-02-03 22:57:37 -05:00
parent 7007cfea9d
commit 544ef1b2f0
5 changed files with 56 additions and 20 deletions

View file

@ -17,7 +17,7 @@ export const corsHeaders = {
'Access-Control-Max-Age': '86400',
};
export const noContent = () => new Response(null, { status: 204 });
export const noContent = () => new Response(null, { status: 204, headers: corsHeaders });
export const seeOther = (url: string) =>
new Response(
`<!doctype html>If you are not redirected soon, <a href="${url}">click here.</a>`,