Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net/http: Range request edge case #8988
There's currently a bug with ServeContent and FileServer when handling Range requests. Given a file of size N, a request for "Range: bytes=N-*" should return a 416. However, currently, it returns 206, a body of 0 bytes, and the illegal Content-Range of "bytes N-(N-1)/N".