forked from FoundKeyGang/FoundKey
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:
parent
b2c800e654
commit
54075789cd
1 changed files with 1 additions and 4 deletions
|
@ -32,10 +32,7 @@ app.use(async (ctx, next) => {
|
||||||
await next();
|
await next();
|
||||||
});
|
});
|
||||||
|
|
||||||
app.use(bodyParser({
|
app.use(bodyParser());
|
||||||
// リクエストが multipart/form-data でない限りはJSONだと見なす
|
|
||||||
detectJSON: ctx => !ctx.is('multipart/form-data'),
|
|
||||||
}));
|
|
||||||
|
|
||||||
// Init multer instance
|
// Init multer instance
|
||||||
const upload = multer({
|
const upload = multer({
|
||||||
|
|
Loading…
Reference in a new issue