diff options
author | Tomas Morstein <[email protected]> | 2014-07-26 12:32:04 +0200 |
---|---|---|
committer | Tomas Morstein <[email protected]> | 2014-07-26 12:32:04 +0200 |
commit | 912d3d3566cc0aac59b29b5bfaefa99332d8d1a9 (patch) | |
tree | ea475e2a48f09d9a681ff7e1c7aa5a4addc05c83 | |
parent | 99061274b6dc602614a07a8751ea3925950f6b80 (diff) | |
download | cowboy-912d3d3566cc0aac59b29b5bfaefa99332d8d1a9.tar.gz cowboy-912d3d3566cc0aac59b29b5bfaefa99332d8d1a9.tar.bz2 cowboy-912d3d3566cc0aac59b29b5bfaefa99332d8d1a9.zip |
fix a documentation typo
The function `set_resp_header' is defined in `cowboy_req'
module, not the `cowboy'.
-rw-r--r-- | doc/src/guide/ws_handlers.ezdoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/guide/ws_handlers.ezdoc b/doc/src/guide/ws_handlers.ezdoc index 0de7910..9c3e2b7 100644 --- a/doc/src/guide/ws_handlers.ezdoc +++ b/doc/src/guide/ws_handlers.ezdoc @@ -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 -> |