"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
Simplify content length processing in s3 with download url
Logeshwaran Murugesanbcf0e15ad7b2
diff --git a/backend/s3/s3.go b/backend/s3/s3.goindex 91a7dd24d..29975236c 100644--- a/backend/s3/s3.go+++ b/backend/s3/s3.go@@ -3325,11 +3325,7 @@ func (o *Object) downloadFromURL(ctx context.Context, bucketPath string, optionsreturn nil, err}- size, err := strconv.ParseInt(resp.Header.Get("Content-Length"), 10, 64)- if err != nil {- fs.Debugf(o, "Failed to parse content length from string %s, %v", resp.Header.Get("Content-Length"), err)- }- contentLength := &size+ contentLength := &resp.ContentLengthif resp.Header.Get("Content-Range") != "" {var contentRange = resp.Header.Get("Content-Range")slash := strings.IndexRune(contentRange, '/')