aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http_websocket.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_http_websocket.erl')
-rw-r--r--src/cowboy_http_websocket.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_http_websocket.erl b/src/cowboy_http_websocket.erl
index 8562061..81cd7cd 100644
--- a/src/cowboy_http_websocket.erl
+++ b/src/cowboy_http_websocket.erl
@@ -79,7 +79,7 @@ upgrade(ListenerPid, Handler, Opts, Req) ->
websocket_upgrade(State, Req) ->
{tokens, ConnTokens, Req2}
= cowboy_http_req:parse_header('Connection', Req),
- true = lists:member(<<"Upgrade">>, ConnTokens),
+ true = lists:member(<<"upgrade">>, ConnTokens),
{WS, Req3} = cowboy_http_req:header('Upgrade', Req2),
<<"websocket">> = cowboy_bstr:to_lower(WS),
{Version, Req4} = cowboy_http_req:header(<<"Sec-Websocket-Version">>, Req3),