From 77b35622570e3802da31df9f549875b60bd121cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 4 Nov 2011 10:38:04 +0100 Subject: 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. --- src/cowboy_http_req.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cowboy_http_req.erl') 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, -- cgit v1.2.3