You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Range suffixes are not Rust RangeTo (hyperium#155)
An HTTP Range of `bytes=-100` means a suffix, the last 100 bytes. This
was wrongly parsed as the Rust range `..100`, which means the first 100
bytes.
This has been fixed, but doing so required change `Range::iter` to
accept a length argument, to determine if the ranges are satisfiable.
BREAKING CHANGE: Change `.iter()` calls to `.satisfiable_ranges(len)`.
Also, the `Range::bytes()` constructor will now return an error if
pass a `RangeTo` (e.g. `Range::bytes(..100)`).
0 commit comments