From 45c131dfeda29a61d89898cba48a8b83f7293071 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Wed, 4 Sep 2024 22:59:39 +0200 Subject: [PATCH] fix(api): :bug: Don't clone body twice --- utils/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/api.ts b/utils/api.ts index 5ecc9b19..a6f05fab 100644 --- a/utils/api.ts +++ b/utils/api.ts @@ -435,7 +435,7 @@ export const jsonOrForm = () => { }; export const debugRequest = async (req: Request) => { - const body = await req.clone().text(); + const body = await req.text(); const logger = getLogger("server"); const urlAndMethod = `${chalk.green(req.method)} ${chalk.blue(req.url)}`;