mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
Increase maximum size of webhook payload. (#606)
* Increase maximum size of webhook payload. * Create 606.misc
This commit is contained in:
parent
ad6076cbb4
commit
2eadc1c9d7
1
changelog.d/606.misc
Normal file
1
changelog.d/606.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Increase maximum size of incoming webhook payload from `100kb` to `10mb`.
|
@ -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));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user