0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +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:
Tomas Morstein 2014-07-26 12:32:04 +02:00
parent 99061274b6
commit 912d3d3566

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