feat: only parse json body when content-type is json
This commit is contained in:
parent
96abcb9db0
commit
2af110ff62
@ -21,7 +21,7 @@ console.log("=== END LOG CONFIG ===");
|
||||
app.set('views', path.join(__dirname, 'templates'));
|
||||
app.set('view engine', 'ejs');
|
||||
app.use(bodyParser.urlencoded({ extended: true }));
|
||||
app.use(bodyParser.json({ limit: '50mb' }));
|
||||
app.use(bodyParser.json({ limit: '50mb', type: 'application/*+json' }));
|
||||
|
||||
// Add logs
|
||||
app.use(morgan(log_format));
|
||||
|
Loading…
x
Reference in New Issue
Block a user