From b700ad40ef8ebeabf30b4486ff21c7d3e3b2d6bd Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 16 Jul 2024 11:34:25 -0500 Subject: [PATCH] Website: Update body parser configuration. (#20511) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes: - Updated the website's body parser limit (5mb ยป 10mb) --- website/config/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/config/http.js b/website/config/http.js index 594ff8437f24..703f3b7d6895 100644 --- a/website/config/http.js +++ b/website/config/http.js @@ -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) {