From af9e742e713490fc333676d389c8c61a00d3af2e Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 28 Dec 2022 09:07:41 +0900 Subject: [PATCH] fix(server): bodyLimit for each endpoints --- packages/backend/src/server/api/ApiServerService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/ApiServerService.ts b/packages/backend/src/server/api/ApiServerService.ts index 436c6eaea9..ee09349d80 100644 --- a/packages/backend/src/server/api/ApiServerService.ts +++ b/packages/backend/src/server/api/ApiServerService.ts @@ -93,7 +93,7 @@ export class ApiServerService { Params: { endpoint: string; }, Body: Record, Querystring: Record, - }>('/' + endpoint.name, (request, reply) => { + }>('/' + endpoint.name, { bodyLimit: 1024 * 32 }, (request, reply) => { if (request.method === 'GET' && !endpoint.meta.allowGet) { reply.code(405); reply.send();