Fix return value of mgmt login handler on bad method
To match what cowboy_handler expects.
This commit is contained in:
parent
865d533863
commit
4d21184a12
|
|
@ -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}.
|
||||
|
|
|
|||
Loading…
Reference in New Issue