Increase maximum size of webhook payload. (#606)

* Increase maximum size of webhook payload.

* Create 606.misc
This commit is contained in:
Will Hunt 2023-01-04 12:04:58 +00:00 committed by GitHub
parent ad6076cbb4
commit 2eadc1c9d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

1
changelog.d/606.misc Normal file
View File

@ -0,0 +1 @@
Increase maximum size of incoming webhook payload from `100kb` to `10mb`.

View File

@ -70,6 +70,7 @@ export class Webhooks extends EventEmitter {
} }
this.expressRouter.use(express.json({ this.expressRouter.use(express.json({
verify: this.verifyRequest.bind(this), verify: this.verifyRequest.bind(this),
limit: '10mb',
})); }));
this.expressRouter.post("/", this.onPayload.bind(this)); this.expressRouter.post("/", this.onPayload.bind(this));
} }