Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #14174 +/- ##
=======================================
Coverage 99.11% 99.11%
=======================================
Files 135 135
Lines 53338 53401 +63
Branches 2717 2726 +9
=======================================
+ Hits 52865 52930 +65
+ Misses 359 358 -1
+ Partials 114 113 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Merging this PR will not alter performance1 warning
Comparing Footnotes
|
[Medium impact] The PR appears safe to merge; no blocking issues were found. Reviews (3) · Last reviewed commit: "Merge branch 'master' into test-14124-mu..." · Reviewed by Greptile |
|
Hello maintainers, |
What do these changes do?
Handle valid, satisfiable multi-range requests in FileResponse
by ignoring the Range header and serving the full file with HTTP 200.
Preserve HTTP 416 for malformed and wholly unsatisfiable ranges,
and HTTP 206 for valid single-range requests.
Added regression tests, documentation, changelog, and contributor entry.
Are there changes in behavior for the user?
Yes. Valid multi-range requests that previously returned 416
now receive 200 with the complete file.
Is it a substantial burden for the maintainers to support this?
The fix is limited to FileResponse and adds no public API.
Related issue number
Fixes #14124.
This is an independently developed alternative to #14129.
It includes additional regression coverage for whitespace,
reversed ranges, and wholly unsatisfiable range sets.
I am open to coordinating the changes.
Checklist
Verification