Skip to content

Commit

Permalink
Use body parser limit on JSON type. (redwoodjs#2911)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterp authored Jun 29, 2021
1 parent d808679 commit ad7ade7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/api-server/src/middleware/withFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const withFunctions = (app: Application, apiRootPath: string) => {
app.use(
bodyParser.text({
type: ['text/*', 'application/json', 'multipart/form-data'],
limit: process.env.BODY_PARSER_LIMIT,
})
)

Expand Down

0 comments on commit ad7ade7

Please sign in to comment.