Fix the last-byte-pos value in Content-Range response
Return 416 Range Not Satisfiable if the range is beyond the file size
The Content-range header being generated was invalid; the
last-byte-pos was equal to the complete-length. Especially notable was
that wget -c would fail on range requests.
Fix the last-byte-pos value in Content-Range response Return 416 Range Not Satisfiable if the range is beyond the file size
The Content-range header being generated was invalid; the last-byte-pos was equal to the complete-length. Especially notable was that
wget -c
would fail on range requests.https://github.com/davidmoreno/onion/issues/239 may be caused by this same issue.
From https://httpwg.org/specs/rfc7233.html#header.content-range: