aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http_req.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-11-04 10:38:04 +0100
committerLoïc Hoguin <[email protected]>2011-11-04 10:38:04 +0100
commit77b35622570e3802da31df9f549875b60bd121cc (patch)
tree0f52a31aef8190043ef01c3c6665dd7ebc06e430 /src/cowboy_http_req.erl
parent68c1d886e5c4cb974b62b9c5fe7f21e6bbc5d557 (diff)
downloadcowboy-77b35622570e3802da31df9f549875b60bd121cc.tar.gz
cowboy-77b35622570e3802da31df9f549875b60bd121cc.tar.bz2
cowboy-77b35622570e3802da31df9f549875b60bd121cc.zip
Rename cowboy_http:charset/2 to conneg/2 and use it for Accept-Encoding
Sorry I apparently used an outdated RFC when I was doing this.
Diffstat (limited to 'src/cowboy_http_req.erl')
-rw-r--r--src/cowboy_http_req.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl
index 3a3dd2f..064722f 100644
--- a/src/cowboy_http_req.erl
+++ b/src/cowboy_http_req.erl
@@ -219,12 +219,12 @@ parse_header(Name, Req, Default) when Name =:= 'Accept' ->
parse_header(Name, Req, Default) when Name =:= 'Accept-Charset' ->
parse_header(Name, Req, Default,
fun (Value) ->
- cowboy_http:nonempty_list(Value, fun cowboy_http:charset/2)
+ cowboy_http:nonempty_list(Value, fun cowboy_http:conneg/2)
end);
parse_header(Name, Req, Default) when Name =:= 'Accept-Encoding' ->
parse_header(Name, Req, Default,
fun (Value) ->
- cowboy_http:list(Value, fun cowboy_http:token_ci/2)
+ cowboy_http:list(Value, fun cowboy_http:conneg/2)
end);
parse_header(Name, Req, Default) when Name =:= 'Connection' ->
parse_header(Name, Req, Default,