aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Morstein <[email protected]>2014-07-26 12:32:04 +0200
committerTomas Morstein <[email protected]>2014-07-26 12:32:04 +0200
commit912d3d3566cc0aac59b29b5bfaefa99332d8d1a9 (patch)
treeea475e2a48f09d9a681ff7e1c7aa5a4addc05c83
parent99061274b6dc602614a07a8751ea3925950f6b80 (diff)
downloadcowboy-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.ezdoc2
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 ->