mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
fix a documentation typo
The function `set_resp_header' is defined in `cowboy_req' module, not the `cowboy'.
This commit is contained in:
parent
99061274b6
commit
912d3d3566
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ websocket_init(_Type, Req, _Opts) ->
|
||||||
{ok, Subprotocols, Req2} ->
|
{ok, Subprotocols, Req2} ->
|
||||||
case lists:keymember(<<"mychat2">>, 1, Subprotocols) of
|
case lists:keymember(<<"mychat2">>, 1, Subprotocols) of
|
||||||
true ->
|
true ->
|
||||||
Req3 = cowboy:set_resp_header(<<"sec-websocket-protocol">>,
|
Req3 = cowboy_req:set_resp_header(<<"sec-websocket-protocol">>,
|
||||||
<<"mychat2">>, Req2),
|
<<"mychat2">>, Req2),
|
||||||
{ok, Req3, #state{}};
|
{ok, Req3, #state{}};
|
||||||
false ->
|
false ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue