A valid ranges-specifier is "satisfiable" if it contains at least one range-spec that is satisfiable, as defined by the indicated range-unit. Otherwise, the ranges-specifier is "unsatisfiable".
Thus, one may not reject a range request that exceeds file length. This PR allows for requesting a too long range from s3-fs, which will silently be cropped to maximum length. This also matches the functionality of Minio and Rados gateway.
Furthermore, the Content-Range header is filled in accordance to RFC 9110.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
RFC 9110 states:
A valid ranges-specifier is "satisfiable" if it contains at least one range-spec that is satisfiable, as defined by the indicated range-unit. Otherwise, the ranges-specifier is "unsatisfiable".
Thus, one may not reject a range request that exceeds file length. This PR allows for requesting a too long range from s3-fs, which will silently be cropped to maximum length. This also matches the functionality of Minio and Rados gateway.
Furthermore, the Content-Range header is filled in accordance to RFC 9110.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.