console log type

master
TZGyn 6 months ago
parent 7768b60a58
commit e116e1b527

@ -6,6 +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')
console.log(type)
if (!type || !type.startsWith('application/json')) { if (!type || !type.startsWith('application/json')) {
return new Response() return new Response()
} }

Loading…
Cancel
Save