remove body parser settings for now

This commit is contained in:
cutestnekoaqua 2023-02-11 00:08:26 +01:00
parent 6e79148152
commit 41ce22aa1c
No known key found for this signature in database
GPG Key ID: 6BF0964A5069C1E0
1 changed files with 1 additions and 8 deletions

View File

@ -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