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 case of "Bearer" in Authorization: header to agree with RFC

Nick Craig-Wood705e4694ede9
diff --git a/backend/webdav/webdav.go b/backend/webdav/webdav.go
index aedd6f70a..4a21ea05f 100644
--- a/backend/webdav/webdav.go
+++ b/backend/webdav/webdav.go
@@ -384,7 +384,7 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) {
// sets the BearerToken up
func (f *Fs) setBearerToken(token string) {
f.opt.BearerToken = token
- f.srv.SetHeader("Authorization", "BEARER "+token)
+ f.srv.SetHeader("Authorization", "Bearer "+token)
}
// fetch the bearer token using the command