Browse Source

Rm tmp var

turtled 7 năm trước cách đây
mục cha
commit
af21cdfd1b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/emqx_ws_connection.erl

+ 1 - 1
src/emqx_ws_connection.erl

@@ -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.