Skip to content

Commit

Permalink
Merge pull request #675 from telefonicaid/task/set_bodyParser_express…
Browse files Browse the repository at this point in the history
…_limit

set express limit from iota config
  • Loading branch information
fgalan authored May 6, 2024
2 parents 46ab9f3 + 34e5dc1 commit 079dc76
Show file tree
Hide file tree
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
Expand Up @@ -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,
Expand Down

0 comments on commit 079dc76

Please sign in to comment.