Skip to content

Commit bf03ae6

Browse files
authored
Merge pull request #8 from mtb-xt/increase-limits
Set body parser limit size
2 parents 4f7ad36 + e22bcd0 commit bf03ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const getParsedYaml = createParsedYamlRetriever(gh)
1919
const nullYaml = index => `kind: pipeline\nname: default_${index}\ntrigger:\n event:\n exclude: [ "*" ]`
2020

2121
const app = express()
22-
app.post('/', bodyParser.json(), async (req, res) => {
22+
app.post('/', bodyParser.json({limit: '50mb'}), async (req, res) => {
2323
console.log('Processing...')
2424
if (!req.headers.signature) return res.status(400).send('Missing signature')
2525
if (!isValidSig(req, sharedKey)) return res.status(400).send('Invalid signature')

0 commit comments

Comments
 (0)