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

webdav: fix Open Range requests to fix 4shared mount

Nick Craig-Wood65eee674b980
diff --git a/backend/webdav/webdav.go b/backend/webdav/webdav.go
index 10ed2e29d..6f1238e3b 100644
--- a/backend/webdav/webdav.go
+++ b/backend/webdav/webdav.go
@@ -1128,6 +1128,7 @@ func (o *Object) Storable() bool {
// Open an object for read
func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (in io.ReadCloser, err error) {
var resp *http.Response
+ fs.FixRangeOption(options, o.size)
opts := rest.Opts{
Method: "GET",
Path: o.filePath(),