Merge pull request #7675 from cloudamqp/login_handler

Fix return value of mgmt login handler on bad method
This commit is contained in:
Michael Klishin 2023-03-21 19:48:55 +04:00 committed by GitHub
commit 7fb32b6ae0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -35,6 +35,6 @@ login(<<"POST">>, Req0, State) ->
{ok, ReqData2, State}
end;
login(_, Req0, _) ->
%% Method not allowed.
cowboy_req:reply(405, Req0).
login(_, Req0, State) ->
%% Method not allowed.
{ok, cowboy_req:reply(405, Req0), State}.