net/http: ServeContent does not send Content-Range in 416 errors #15798
Labels
Milestone
Comments
Sure, seems like a failure mode we overlooked in the implementation. Also seems like low hanging fruit for anyone looking for something to do. |
CL https://golang.org/cl/24212 mentions this issue. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
https://tools.ietf.org/html/rfc7233#section-4.4 says that if the range cannot be satisfied because it is beyond the length of the instance, Content-Range should be returned with a 416 containing the instance length. This does not occur with http.ServeContent.
The text was updated successfully, but these errors were encountered: