Closed imtiazmangerah closed 4 years ago
Merging #75 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #75 +/- ##
=======================================
Coverage 98.50% 98.50%
=======================================
Files 2 2
Lines 67 67
=======================================
Hits 66 66
Misses 1 1
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update f8ea6a8...f500c6c. Read the comment docs.
Thanks! Do you think you could add test(s) for this? Could be able to do the same thing you've illustrated with curl
but with any of the current assets/fixtures.
@lukeed I think the test suite will have to include a few more cases which will fail even with the fix, example:
bytes=0-499, -500
[x,y] would be parsed incorrectly, yet that is a valid header for bytes.
Is it the intention of sirv to have full support for range requests?
Let's worry about the other Range
values separately. That's easy to address, but this PR should focus on the mutable headers
reference you identified
@lukeed gave the tests a go, first commit of tests passed, cleaned up the tests to avoid repetition and now checks failed. I cant spot what would cause that, any hints?
A request with Range headers present will result in the headers object being modified for all subsequent requests.
To reproduce:
Image used for above test: