Skip to content

Commit

Permalink
feat: increase request limit for express routers (#1118)
Browse files Browse the repository at this point in the history
fixes #1117
  • Loading branch information
simonas-notcat authored Feb 9, 2023
1 parent ba7a303 commit 2db3149
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/remote-server/src/agent-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface AgentRouterOptions {
*/
export const AgentRouter = (options: AgentRouterOptions): Router => {
const router = Router()
router.use(json())
router.use(json({ limit: '10mb' }))

for (const exposedMethod of options.exposedMethods) {
Debug('veramo:remote-server:initializing')(exposedMethod)
Expand Down
2 changes: 1 addition & 1 deletion packages/remote-server/src/messaging-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface MessagingRouterOptions {
*/
export const MessagingRouter = (options: MessagingRouterOptions): Router => {
const router = Router()
router.use(text({ type: '*/*' }))
router.use(text({ type: '*/*', limit: '10mb' }))
router.post('/', async (req: RequestWithMessageHandler, res) => {
try {
const message = await req.agent?.handleMessage({
Expand Down

0 comments on commit 2db3149

Please sign in to comment.