"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
gcs: fix 400 Bad request errors when using multi-thread copy
Nick Craig-Wood4ac5cb07cabe
diff --git a/backend/googlecloudstorage/googlecloudstorage.go b/backend/googlecloudstorage/googlecloudstorage.goindex 5f8458788..1d1bffaee 100644--- a/backend/googlecloudstorage/googlecloudstorage.go+++ b/backend/googlecloudstorage/googlecloudstorage.go@@ -1310,10 +1310,11 @@ func (o *Object) Storable() bool {// Open an object for readfunc (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (in io.ReadCloser, err error) {+ url := o.urlif o.fs.opt.UserProject != "" {- o.url = o.url + "&userProject=" + o.fs.opt.UserProject+ url += "&userProject=" + o.fs.opt.UserProject}- req, err := http.NewRequestWithContext(ctx, "GET", o.url, nil)+ req, err := http.NewRequestWithContext(ctx, "GET", url, nil)if err != nil {return nil, err}