Merge pull request #442 from shocknet/request-data-limit

Up json request data limit to 500kb (images)
This commit is contained in:
Daniel Lugo 2021-07-26 14:08:28 -04:00 committed by GitHub
commit 1f9c0d1ee3

View file

@ -311,7 +311,7 @@ const server = program => {
}) })
) )
app.use(bodyParser.urlencoded({ extended: 'true' })) app.use(bodyParser.urlencoded({ extended: 'true' }))
app.use(bodyParser.json()) app.use(bodyParser.json({ limit: '500kb' }))
app.use(bodyParser.json({ type: 'application/vnd.api+json' })) app.use(bodyParser.json({ type: 'application/vnd.api+json' }))
app.use(methodOverride()) app.use(methodOverride())
// WARNING // WARNING