0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Merge branch 'master' of git://github.com/ztmr/cowboy

This commit is contained in:
Loïc Hoguin 2014-07-27 16:45:58 +02:00
commit 9e437e8119

View file

@ -73,7 +73,7 @@ websocket_init(_Type, Req, _Opts) ->
{ok, Subprotocols, Req2} ->
case lists:keymember(<<"mychat2">>, 1, Subprotocols) of
true ->
Req3 = cowboy:set_resp_header(<<"sec-websocket-protocol">>,
Req3 = cowboy_req:set_resp_header(<<"sec-websocket-protocol">>,
<<"mychat2">>, Req2),
{ok, Req3, #state{}};
false ->