We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f62144 commit 2f894c8Copy full SHA for 2f894c8
1 file changed
lib/index.js
@@ -19,9 +19,11 @@ function GitHooked(ref, action) {
19
// create express instance
20
var githooked = express();
21
22
- // middleware
23
githooked.use(bodyParser.urlencoded({ extended: false }));
24
- githooked.use(bodyParser.json());
+
+ // json parsing middleware limit is increased to 1mb, otherwise large PRs/pushes will
25
+ // fail due to maiximum content-length exceeded
26
+ githooked.use(bodyParser.json({limit: 1000000}));
27
28
// main POST handler
29
githooked.post('/', function (req, res ) {
0 commit comments