server: remove content type bodge

Now that the client should send the proper content type, this should not be
necessary any more.
This commit is contained in:
Johann150 2022-11-08 20:57:38 +01:00
parent b2c800e654
commit 54075789cd
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -32,10 +32,7 @@ app.use(async (ctx, next) => {
await next();
});
app.use(bodyParser({
// リクエストが multipart/form-data でない限りはJSONだと見なす
detectJSON: ctx => !ctx.is('multipart/form-data'),
}));
app.use(bodyParser());
// Init multer instance
const upload = multer({