Return 206 Partial Content on Valid Range for Static Assets by melotic · Pull Request #59160 · dotnet/aspnetcore (original) (raw)
Currently, static assets returns a 416 Range Not Satisfiable when given a satisfiable range instead of a 206 Partial Content.
Fixes the bug and adds a test for it.
Fixes #58829
Additionally, the current logic doesn't return a 416 when the supplied range is unsatisfiable. I'll file a separate issue and PR.