diff options
author | Loïc Hoguin <[email protected]> | 2011-10-20 19:04:49 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-10-20 19:04:49 +0200 |
commit | c589922ebdc7cc6b843c0dbc9ec18a9b7f902586 (patch) | |
tree | eb43c7ca431bf38df720c5dd758c082f78fe1e44 /src/cowboy_http_req.erl | |
parent | 381c1780738cbb02f0065f92991bc43ccd53a0c5 (diff) | |
download | cowboy-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.erl | 2 |
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 -> |