diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c30079..7c19b61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 0.13.17 +* up the limit on bodyParser applied on the batch endpoint + # 0.13.16 * Explicitly handle too large kraken notification payloads * Adds devMode utility diff --git a/package.json b/package.json index 96a9be6..d0731ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hull", - "version": "0.13.16", + "version": "0.13.17", "description": "A Node.js client for hull.io", "main": "lib", "repository": { diff --git a/src/utils/notif-middleware.js b/src/utils/notif-middleware.js index 4e58cc3..e7561a1 100644 --- a/src/utils/notif-middleware.js +++ b/src/utils/notif-middleware.js @@ -50,7 +50,7 @@ module.exports = function notifMiddlewareFactory() { } if (req.headers["x-amz-sns-message-type"] || req.url.match("/batch")) { req.headers["content-type"] = "application/json;charset=UTF-8"; - bodyParser.json({ limit: "256kb" })(req, res, () => { + bodyParser.json({ limit: "10mb" })(req, res, () => { if (req.body && req.body.Message && req.body.Type) { req.hull.message = req.body; }