mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Merge branch 'master' of git://github.com/ztmr/cowboy
This commit is contained in:
commit
9e437e8119
1 changed files with 1 additions and 1 deletions
|
@ -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 ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue