diff --git a/CHANGES_NEXT_RELEASE b/CHANGES_NEXT_RELEASE index 8b137891..747ecb5a 100644 --- a/CHANGES_NEXT_RELEASE +++ b/CHANGES_NEXT_RELEASE @@ -1 +1 @@ - +- Fix default express limit to 1Mb instead default 100Kb and allow change it throught a conf env var 'IOTA_EXPRESS_LIMIT' (iota-json#827) diff --git a/lib/bindings/HTTPBindings.js b/lib/bindings/HTTPBindings.js index 115df2a8..dbb99537 100644 --- a/lib/bindings/HTTPBindings.js +++ b/lib/bindings/HTTPBindings.js @@ -488,7 +488,7 @@ function start(callback) { httpBindingServer.router.post( config.getConfig().iota.defaultResource || constants.HTTP_MEASURE_PATH, addDefaultHeader, - bodyParser.text(), + bodyParser.text({ limit: config.getConfig().iota.expressLimit }), checkMandatoryParams(false), parseData, addTimestamp,