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

azurefiles: fix missing x-ms-file-request-intent header

Nick Craig-Woode1748a3183b9
diff --git a/backend/azurefiles/azurefiles.go b/backend/azurefiles/azurefiles.go
index 0cae6620f..acff5be19 100644
--- a/backend/azurefiles/azurefiles.go
+++ b/backend/azurefiles/azurefiles.go
@@ -393,8 +393,10 @@ func newFsFromOptions(ctx context.Context, name, root string, opt *Options) (fs.
policyClientOptions := policy.ClientOptions{
Transport: newTransporter(ctx),
}
+ backup := service.ShareTokenIntentBackup
clientOpt := service.ClientOptions{
- ClientOptions: policyClientOptions,
+ ClientOptions: policyClientOptions,
+ FileRequestIntent: &backup,
}
// Here we auth by setting one of cred, sharedKeyCred or f.client