Skip to content

Commit

Permalink
fix(app-express): default json request body size limit to 10mb
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Jun 5, 2023
1 parent 2af164a commit 499139b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-express/middleware/json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ import { express } from '../deps.ts'
* that don't provide the header explictly
*/
export const json = (options: Parameters<typeof express.json>[0] = {}) =>
express.json({ type: '*/*', ...options })
express.json({ type: '*/*', limit: '10mb', ...options })

0 comments on commit 499139b

Please sign in to comment.