remove body parser settings for now
This commit is contained in:
parent
6e79148152
commit
41ce22aa1c
1 changed files with 1 additions and 8 deletions
|
@ -40,14 +40,7 @@ app.use(async (ctx, next) => {
|
||||||
app.use(formidable());
|
app.use(formidable());
|
||||||
|
|
||||||
app.use(
|
app.use(
|
||||||
bodyParser({
|
bodyParser(),
|
||||||
// リクエストが multipart/form-data でない限りはJSONだと見なす
|
|
||||||
detectJSON: (ctx) =>
|
|
||||||
!(
|
|
||||||
ctx.is("multipart/form-data") ||
|
|
||||||
ctx.is("application/x-www-form-urlencoded")
|
|
||||||
),
|
|
||||||
}),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
// Init multer instance
|
// Init multer instance
|
||||||
|
|
Loading…
Reference in a new issue