diff options
author | Loïc Hoguin <[email protected]> | 2011-11-10 12:55:00 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-11-10 12:55:00 +0100 |
commit | a5b47fda8de7972c9affb4f4d1320fb666c67a92 (patch) | |
tree | 237f494aad5c2c0cdd8265e8e1fef7132d0b1114 /src/cowboy_http_req.erl | |
parent | 2f27b046d71ed439e8a58e2f661e2a84a1d9bea4 (diff) | |
parent | 6fa7659dbb1712926040a3ee257b3fbf21bfd754 (diff) | |
download | cowboy-a5b47fda8de7972c9affb4f4d1320fb666c67a92.tar.gz cowboy-a5b47fda8de7972c9affb4f4d1320fb666c67a92.tar.bz2 cowboy-a5b47fda8de7972c9affb4f4d1320fb666c67a92.zip |
Merge branch 'content-type' of https://github.com/nox/cowboy
Diffstat (limited to 'src/cowboy_http_req.erl')
-rw-r--r-- | src/cowboy_http_req.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl index 12d117f..fa4e620 100644 --- a/src/cowboy_http_req.erl +++ b/src/cowboy_http_req.erl @@ -244,6 +244,11 @@ parse_header(Name, Req, Default) when Name =:= 'Content-Length' -> fun (Value) -> cowboy_http:digits(Value) end); +parse_header(Name, Req, Default) when Name =:= 'Content-Type' -> + parse_header(Name, Req, Default, + fun (Value) -> + cowboy_http:content_type(Value) + end); parse_header(Name, Req, Default) when Name =:= 'If-Match'; Name =:= 'If-None-Match' -> parse_header(Name, Req, Default, |