mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Website: increase bodyparser limit (#20457)
Changes: - updated the website's http config to increase the bodyparser limit.
This commit is contained in:
parent
fb2778c9b3
commit
1e09672720
1 changed files with 1 additions and 1 deletions
2
website/config/http.js
vendored
2
website/config/http.js
vendored
|
|
@ -54,7 +54,7 @@ module.exports.http = {
|
|||
var skipper = require('skipper');
|
||||
var middlewareFn = skipper({
|
||||
strict: true,
|
||||
limit: '2MB',// [?] https://github.com/expressjs/body-parser/tree/ee91374eae1555af679550b1d2fb5697d9924109#limit-1
|
||||
limit: '5MB',// [?] 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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue