You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
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: