mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Use cow_http_hd:parse_transfer_encoding/1 where applicable
This commit is contained in:
parent
dff1b5715c
commit
dbf7b1c5e5
1 changed files with 4 additions and 4 deletions
|
@ -454,10 +454,10 @@ parse_header(Name, Req, Default)
|
||||||
fun (Value) ->
|
fun (Value) ->
|
||||||
cowboy_http:nonempty_list(Value, fun cowboy_http:token/2)
|
cowboy_http:nonempty_list(Value, fun cowboy_http:token/2)
|
||||||
end);
|
end);
|
||||||
%% @todo Extension parameters.
|
parse_header(Name = <<"transfer-encoding">>, Req, Default) ->
|
||||||
parse_header(Name, Req, Default)
|
parse_header(Name, Req, Default, fun cow_http_hd:parse_transfer_encoding/1);
|
||||||
when Name =:= <<"transfer-encoding">>;
|
%% @todo Product version.
|
||||||
Name =:= <<"upgrade">> ->
|
parse_header(Name = <<"upgrade">>, Req, Default) ->
|
||||||
parse_header(Name, Req, Default,
|
parse_header(Name, Req, Default,
|
||||||
fun (Value) ->
|
fun (Value) ->
|
||||||
cowboy_http:nonempty_list(Value, fun cowboy_http:token_ci/2)
|
cowboy_http:nonempty_list(Value, fun cowboy_http:token_ci/2)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue