fix(api): 🐛 Don't clone body twice

This commit is contained in:
Jesse Wierzbinski 2024-09-04 22:59:39 +02:00
parent 5d2aa82247
commit 45c131dfed
No known key found for this signature in database

View file

@ -435,7 +435,7 @@ export const jsonOrForm = () => {
}; };
export const debugRequest = async (req: Request) => { export const debugRequest = async (req: Request) => {
const body = await req.clone().text(); const body = await req.text();
const logger = getLogger("server"); const logger = getLogger("server");
const urlAndMethod = `${chalk.green(req.method)} ${chalk.blue(req.url)}`; const urlAndMethod = `${chalk.green(req.method)} ${chalk.blue(req.url)}`;