Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

box: fix RangeOption support in Open #1825

Nick Craig-Woode44dc2b14d1b
diff --git a/backend/box/box.go b/backend/box/box.go
index 58b3c8637..0f2d2f41f 100644
--- a/backend/box/box.go
+++ b/backend/box/box.go
@@ -960,6 +960,7 @@ func (o *Object) Open(options ...fs.OpenOption) (in io.ReadCloser, err error) {
if o.id == "" {
return nil, errors.New("can't download - no id")
}
+ fs.FixRangeOption(options, o.size)
var resp *http.Response
opts := rest.Opts{
Method: "GET",