Skip to content

Commit

Permalink
Website: Update body parser configuration. (#20511)
Browse files Browse the repository at this point in the history
Changes:
- Updated the website's body parser limit (5mb » 10mb)
  • Loading branch information
eashaw authored Jul 16, 2024
1 parent 8cbcf3f commit b700ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/config/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports.http = {
var skipper = require('skipper');
var middlewareFn = skipper({
strict: true,
limit: '5MB',// [?] https://github.com/expressjs/body-parser/tree/ee91374eae1555af679550b1d2fb5697d9924109#limit-1
limit: '10MB',// [?] https://github.com/expressjs/body-parser/tree/ee91374eae1555af679550b1d2fb5697d9924109#limit-1
onBodyParserError: (err, req, res)=>{
// If an error occurs while parsing an incoming request body, we'll return a badRequest response if error.statusCode is between 400-500
if (_.isNumber(err.statusCode) && err.statusCode >= 400 && err.statusCode < 500) {
Expand Down

0 comments on commit b700ad4

Please sign in to comment.