Skip to content
Snippets Groups Projects
Commit 4ede367c authored by syuilo's avatar syuilo
Browse files

GET非対応APIにGETでリクエストすると接続が開きっぱなしになる

Fix #9404
parent adbeff3a
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment