update webhook content type check

master
TZGyn 6 months ago
parent 145c4d51d6
commit 7768b60a58

@ -6,7 +6,7 @@ import { z } from 'zod'
export const POST = async ({ locals, request }) => { export const POST = async ({ locals, request }) => {
const type = request.headers.get('Content-Type') const type = request.headers.get('Content-Type')
if (type !== 'application/json; charset=utf-8') { if (!type || !type.startsWith('application/json')) {
return new Response() return new Response()
} }

Loading…
Cancel
Save