Addresses issue #49 - adjustment of range headers.
feat: Added Range: Tests
Tests to evaluate
ranges exceeding file size
negative ranges (individually, as group, overlapping)
RangeNotSatisfiable on range start > file size (individual, and as a group, and without a range end)
RangeNotSatisfiable on range start < 0 (when suffix > file size)
fix: ranges logic update
The ranges calculation in parse_range now will return values for prefix, suffix, and over-large ranges.
The rest of the logic should work with the change.
fix: response tests pass
Other response tests modified to match expected functionality.
Some minor changes to websockets to allow those tests to pass as well.
Addresses issue #49 - adjustment of range headers.
Tests to evaluate
ranges exceeding file size
negative ranges (individually, as group, overlapping)
RangeNotSatisfiable on range start > file size (individual, and as a group, and without a range end)
RangeNotSatisfiable on range start < 0 (when suffix > file size)
fix: ranges logic update
The ranges calculation in parse_range now will return values for prefix, suffix, and over-large ranges. The rest of the logic should work with the change.