Skip to content

Commit e22bcd0

Browse files
author
Marat Bakeev
authored
Set body parser limit size
1 parent c310eb8 commit e22bcd0

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 = 'kind: pipeline\nname: default\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)