mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Added range header parser
This commit is contained in:
parent
61b3157ad1
commit
2f40a69c11
2 changed files with 84 additions and 0 deletions
|
@ -445,6 +445,8 @@ parse_header(Name, Req, Default)
|
|||
when Name =:= <<"if-modified-since">>;
|
||||
Name =:= <<"if-unmodified-since">> ->
|
||||
parse_header(Name, Req, Default, fun cowboy_http:http_date/1);
|
||||
parse_header(Name = <<"range">>, Req, Default) ->
|
||||
parse_header(Name, Req, Default, fun cowboy_http:range/1);
|
||||
parse_header(Name, Req, Default)
|
||||
when Name =:= <<"sec-websocket-protocol">>;
|
||||
Name =:= <<"x-forwarded-for">> ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue