From ed6736adf09fa1cb623c4ca2f390b99de8029c2b 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 bfbc6a3fe..fc6e0158d 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