@ -37,7 +37,10 @@ module.exports = {
_newExpressApp(funcConfs) {
const app = express();
app.use(bodyParser.json({ limit: '5mb' }));
app.use(bodyParser.json({
limit: '5mb',
type: (req) => /json/.test(req.headers['content-type']),
}));
for (let funcConf of funcConfs) {
for (let httpEvent of funcConf.events) {