From 41ce22aa1c718dde7585609da2addd75985394a0 Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Sat, 11 Feb 2023 00:08:26 +0100 Subject: [PATCH] remove body parser settings for now --- packages/backend/src/server/api/index.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/backend/src/server/api/index.ts b/packages/backend/src/server/api/index.ts index bfbc6a3fef..fc6e0158d8 100644 --- a/packages/backend/src/server/api/index.ts +++ b/packages/backend/src/server/api/index.ts @@ -40,14 +40,7 @@ app.use(async (ctx, next) => { app.use(formidable()); app.use( - bodyParser({ - // リクエストが multipart/form-data でない限りはJSONだと見なす - detectJSON: (ctx) => - !( - ctx.is("multipart/form-data") || - ctx.is("application/x-www-form-urlencoded") - ), - }), + bodyParser(), ); // Init multer instance