mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Merge branch 'range_header' of git://github.com/Egobrain/cowboy
This commit is contained in:
commit
9bc276df3b
2 changed files with 84 additions and 0 deletions
|
@ -441,6 +441,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