forked from TrueCloudLab/rclone
webdav: fix sharepoint auth over http - fixes #4418
Before this change rclone would auth over https even when the server was configured with http. Authing over http obviously isn't ideal, however this type of server is on-premise and doesn't work over https.
This commit is contained in:
parent
629a3eeca2
commit
cb30a8c80e
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ func (ca *CookieAuth) getSPCookie(conf *SharepointSuccessResponse) (*CookieRespo
|
|||
return nil, errors.Wrap(err, "Error while constructing endpoint URL")
|
||||
}
|
||||
|
||||
u, err := url.Parse("https://" + spRoot.Host + "/_forms/default.aspx?wa=wsignin1.0")
|
||||
u, err := url.Parse(spRoot.Scheme + "://" + spRoot.Host + "/_forms/default.aspx?wa=wsignin1.0")
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "Error while constructing login URL")
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue