aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-07-27 16:45:58 +0200
committerLoïc Hoguin <[email protected]>2014-07-27 16:45:58 +0200
commit9e437e811939a1602d5737f2f9a5461b53f64b2f (patch)
treeea475e2a48f09d9a681ff7e1c7aa5a4addc05c83 /doc/src
parent99061274b6dc602614a07a8751ea3925950f6b80 (diff)
parent912d3d3566cc0aac59b29b5bfaefa99332d8d1a9 (diff)
downloadcowboy-9e437e811939a1602d5737f2f9a5461b53f64b2f.tar.gz
cowboy-9e437e811939a1602d5737f2f9a5461b53f64b2f.tar.bz2
cowboy-9e437e811939a1602d5737f2f9a5461b53f64b2f.zip
Merge branch 'master' of git://github.com/ztmr/cowboy
Diffstat (limited to 'doc/src')
-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 ->