Skip to content

Commit

Permalink
Merge pull request #1102 from 18F/json-options
Browse files Browse the repository at this point in the history
Pass through bodyParser.json() middleware options
  • Loading branch information
gboone committed Aug 17, 2015
2 parents d19e07a + d4e6492 commit bfbfe9f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deploy/hookshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ if (!branch || !command || !port) {
process.exit(1);
}

hookshot('refs/heads/' + branch, command).listen(port);
// Passed through to bodyParser.json().
// // https://www.npmjs.com/package/body-parser#limit
var json_options = { limit: 1 << 20 };

hookshot('refs/heads/' + branch, command, json_options).listen(port);

console.log("Huzzah! Listening on port " + port + " for push events on " + branch + ".")

0 comments on commit bfbfe9f

Please sign in to comment.