Closed trafficone closed 2 years ago
Correction: the response supports multiple ranges. The issue was with negative ranges.
Range: 0-10, 20-40
OK
Range: 0-10, -500
✖
Oh, this was my oversight.
No worries, the fix seems to have been pretty straightforward. Let me know if you have any questions.
PR is #50
The current implementation of handling the range header is incorrect. When a client requests data that exceeds the file size, the response is generating a 416 error.[1] The range header should not fail on a range that exceeds the representation data.
The implementation should also support multiple ranges, but that isn't as pressing of an issue to me right now.
I'll respond to this with a PR once I've finished the change.
1
2