aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http_req.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-10-20 19:04:49 +0200
committerLoïc Hoguin <[email protected]>2011-10-20 19:04:49 +0200
commitc589922ebdc7cc6b843c0dbc9ec18a9b7f902586 (patch)
treeeb43c7ca431bf38df720c5dd758c082f78fe1e44 /src/cowboy_http_req.erl
parent381c1780738cbb02f0065f92991bc43ccd53a0c5 (diff)
downloadcowboy-c589922ebdc7cc6b843c0dbc9ec18a9b7f902586.tar.gz
cowboy-c589922ebdc7cc6b843c0dbc9ec18a9b7f902586.tar.bz2
cowboy-c589922ebdc7cc6b843c0dbc9ec18a9b7f902586.zip
Parse Connection header tokens in a case-insensitive manner
Diffstat (limited to 'src/cowboy_http_req.erl')
-rw-r--r--src/cowboy_http_req.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl
index 06f1e6b..539c7f0 100644
--- a/src/cowboy_http_req.erl
+++ b/src/cowboy_http_req.erl
@@ -221,7 +221,7 @@ parse_header(Name, Req=#http_req{p_headers=PHeaders}, Default)
case header(Name, Req) of
{undefined, Req2} -> {tokens, Default, Req2};
{Value, Req2} ->
- case cowboy_http:nonempty_list(Value, fun cowboy_http:token/2) of
+ case cowboy_http:nonempty_list(Value, fun cowboy_http:token_ci/2) of
{error, badarg} ->
{error, badarg};
P ->