Skip to content

Commit

Permalink
Up bodyparser limit for batch calls (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaloo authored and sbellity committed Nov 30, 2018
1 parent 88dc401 commit 397f2db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/notif-middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 397f2db

Please sign in to comment.