aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-03-24 14:11:15 +0100
committerLoïc Hoguin <[email protected]>2014-03-24 14:24:52 +0100
commitdff1b5715c286f0f0fb43bcb33de87f97c878eaa (patch)
tree8c63d45bbb65da74f34e62b11c5ff837d1f78cdf /src
parent2629f70ef30ac42daabf6ce0ff36a2b1d81f0c1c (diff)
downloadcowboy-dff1b5715c286f0f0fb43bcb33de87f97c878eaa.tar.gz
cowboy-dff1b5715c286f0f0fb43bcb33de87f97c878eaa.tar.bz2
cowboy-dff1b5715c286f0f0fb43bcb33de87f97c878eaa.zip
Use cow_http_hd:parse_content_length/1 where applicable
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_req.erl2
1 files changed, 1 insertions, 1 deletions
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) ->