Fix return value of mgmt login handler on bad method

To match what cowboy_handler expects.
This commit is contained in:
Péter Gömöri 2023-03-20 11:10:37 +01:00
parent 865d533863
commit 4d21184a12
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}.