webdav: fix case of "Bearer" in Authorization: header to agree with RFC
Before this change rclone used "Authorization: BEARER token". However according the the RFC this should be "Bearer" https://tools.ietf.org/html/rfc6750#section-2.1 This changes it to "Authorization: Bearer token" Fixes #3751 and interop with Salesforce Webdav server
This commit is contained in:
parent
4fbc90d115
commit
705e4694ed
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue