From 4ede367c1e2bea07f1e150b9781b230154899b9a Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 24 Dec 2022 13:55:50 +0900 Subject: [PATCH] =?UTF-8?q?GET=E9=9D=9E=E5=AF=BE=E5=BF=9CAPI=E3=81=ABGET?= =?UTF-8?q?=E3=81=A7=E3=83=AA=E3=82=AF=E3=82=A8=E3=82=B9=E3=83=88=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=81=A8=E6=8E=A5=E7=B6=9A=E3=81=8C=E9=96=8B=E3=81=8D?= =?UTF-8?q?=E3=81=A3=E3=81=B1=E3=81=AA=E3=81=97=E3=81=AB=E3=81=AA=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #9404 --- packages/backend/src/server/api/ApiServerService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend/src/server/api/ApiServerService.ts b/packages/backend/src/server/api/ApiServerService.ts index e9641ea330..436c6eaea9 100644 --- a/packages/backend/src/server/api/ApiServerService.ts +++ b/packages/backend/src/server/api/ApiServerService.ts @@ -82,6 +82,7 @@ export class ApiServerService { }>('/' + endpoint.name, (request, reply) => { if (request.method === 'GET' && !endpoint.meta.allowGet) { reply.code(405); + reply.send(); return; } @@ -95,6 +96,7 @@ export class ApiServerService { }>('/' + endpoint.name, (request, reply) => { if (request.method === 'GET' && !endpoint.meta.allowGet) { reply.code(405); + reply.send(); return; }