🐛 Fix PayloadTooLargeError issue

This commit is contained in:
Jan Oberhauser 2021-09-10 11:59:55 +02:00
parent 0e89166013
commit 0b7049e27b

View file

@ -527,6 +527,7 @@ class App {
// support application/x-www-form-urlencoded post data // support application/x-www-form-urlencoded post data
this.app.use( this.app.use(
bodyParser.urlencoded({ bodyParser.urlencoded({
limit: `${this.payloadSizeMax}mb`,
extended: false, extended: false,
verify: (req, res, buf) => { verify: (req, res, buf) => {
// @ts-ignore // @ts-ignore