fix incorrect http range in SelectObjectContentHandler (#11585)

This commit is contained in:
mailsmail 2021-02-20 08:55:28 +07:00 committed by GitHub
parent c70240b893
commit 173284903b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,6 +188,10 @@ func (api objectAPIHandlers) SelectObjectContentHandler(w http.ResponseWriter, r
isSuffixLength = true
}
if length > 0 {
length--
}
rs := &HTTPRangeSpec{
IsSuffixLength: isSuffixLength,
Start: offset,