We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need to have the ability to configure the limits for the json and urlencoded in the Express bodyParser.
Changes needed in core.js as follows Line 101 from this._config = Object.assign({ webhook_uri: '/api/messages', dialogStateProperty: 'dialogState', disable_webserver: false }, config); to this._config = Object.assign({ webhook_uri: '/api/messages', dialogStateProperty: 'dialogState', disable_webserver: false, jsonLimit: '100kb', urlencodedLimit: '100kb' }, config);
this._config = Object.assign({ webhook_uri: '/api/messages', dialogStateProperty: 'dialogState', disable_webserver: false }, config);
this._config = Object.assign({ webhook_uri: '/api/messages', dialogStateProperty: 'dialogState', disable_webserver: false, jsonLimit: '100kb', urlencodedLimit: '100kb' }, config);
Lines 138 and 139 from this.webserver.use(bodyParser.json()); this.webserver.use(bodyParser.urlencoded({ extended: true })); to this.webserver.use(bodyParser.json({limit: this._config.jsonLimit, extended: true})); this.webserver.use(bodyParser.urlencoded({limit: this._config.urlencodedLimit, extended: true }));
this.webserver.use(bodyParser.json());
this.webserver.use(bodyParser.urlencoded({ extended: true }));
this.webserver.use(bodyParser.json({limit: this._config.jsonLimit, extended: true}));
this.webserver.use(bodyParser.urlencoded({limit: this._config.urlencodedLimit, extended: true }));
The text was updated successfully, but these errors were encountered:
Fix for #1941
f7e153d
fixed in 4.9
Sorry, something went wrong.
No branches or pull requests
Need to have the ability to configure the limits for the json and urlencoded in the Express bodyParser.
Changes needed in core.js as follows
Line 101 from
this._config = Object.assign({ webhook_uri: '/api/messages', dialogStateProperty: 'dialogState', disable_webserver: false }, config);
to
this._config = Object.assign({ webhook_uri: '/api/messages', dialogStateProperty: 'dialogState', disable_webserver: false, jsonLimit: '100kb', urlencodedLimit: '100kb' }, config);
Lines 138 and 139 from
this.webserver.use(bodyParser.json());
this.webserver.use(bodyParser.urlencoded({ extended: true }));
to
this.webserver.use(bodyParser.json({limit: this._config.jsonLimit, extended: true}));
this.webserver.use(bodyParser.urlencoded({limit: this._config.urlencodedLimit, extended: true }));
The text was updated successfully, but these errors were encountered: