diff options
author | Loïc Hoguin <[email protected]> | 2024-01-23 13:15:55 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2024-01-23 13:15:55 +0100 |
commit | 427a276ef2f2042ad312e0260535cbb4696f9072 (patch) | |
tree | e9db446291ce814fa2bcc1b4570a6221625890e3 /src | |
parent | 4ffcbfbf43b317c95e920b0a77e04dc411af79ec (diff) | |
download | cowboy-427a276ef2f2042ad312e0260535cbb4696f9072.tar.gz cowboy-427a276ef2f2042ad312e0260535cbb4696f9072.tar.bz2 cowboy-427a276ef2f2042ad312e0260535cbb4696f9072.zip |
Update the guide with range requests support
Also update the list of headers cowboy_rest might set
and tweak a small number of other items.
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_rest.erl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cowboy_rest.erl b/src/cowboy_rest.erl index 003e5f9..ace5986 100644 --- a/src/cowboy_rest.erl +++ b/src/cowboy_rest.erl @@ -1196,6 +1196,7 @@ if_range(Req=#{headers := #{<<"if-range">> := _, <<"range">> := _}}, if_range(Req, State) -> range(Req, State). +%% @todo This can probably be moved to if_range directly. range(Req, State=#state{ranges_a=[]}) -> set_resp_body(Req, State); range(Req, State) -> |