Rm tmp var

This commit is contained in:
turtled 2018-08-29 10:08:15 +08:00
parent 00cb26c4e0
commit af21cdfd1b
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ init(Req, Opts) ->
[<<"mqtt", Vsn/binary>>] ->
Resp = cowboy_req:set_resp_header(<<"sec-websocket-protocol">>, <<"mqtt", Vsn/binary>>, Req),
{cowboy_websocket, Resp, #state{request = Req, options = Opts}, #{idle_timeout => 86400000}};
R ->
_ ->
{ok, cowboy_req:reply(400, Req), #state{}}
end.