From dff1b5715c286f0f0fb43bcb33de87f97c878eaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 24 Mar 2014 14:11:15 +0100 Subject: Use cow_http_hd:parse_content_length/1 where applicable --- src/cowboy_req.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cowboy_req.erl b/src/cowboy_req.erl index aa07ae7..0a9aff6 100644 --- a/src/cowboy_req.erl +++ b/src/cowboy_req.erl @@ -427,7 +427,7 @@ parse_header(Name = <<"authorization">>, Req, Default) -> cowboy_http:token_ci(Value, fun cowboy_http:authorization/2) end); parse_header(Name = <<"content-length">>, Req, Default) -> - parse_header(Name, Req, Default, fun cowboy_http:digits/1); + parse_header(Name, Req, Default, fun cow_http_hd:parse_content_length/1); parse_header(Name = <<"content-type">>, Req, Default) -> parse_header(Name, Req, Default, fun cowboy_http:content_type/1); parse_header(Name = <<"cookie">>, Req, Default) -> -- cgit v1.2.3