mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(api): 🐛 Don't clone body twice
This commit is contained in:
parent
5d2aa82247
commit
45c131dfed
1 changed files with 1 additions and 1 deletions
|
|
@ -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)}`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue