Skip to content

Commit

Permalink
set express limit from iota config
Browse files Browse the repository at this point in the history
AlvaroVega committed May 6, 2024
1 parent 43bdf2f commit f3acddf
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion lib/bindings/HTTPBindings.js
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit f3acddf

Please sign in to comment.