mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(api): 🐛 Don't clone body twice
This commit is contained in:
parent
5d2aa82247
commit
45c131dfed
|
|
@ -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)}`;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue