mirror of
https://github.com/rclone/rclone.git
synced 2024-11-26 10:13:52 +08:00
jottacloud: fix token refresh - fixes #2992
This commit is contained in:
parent
8f4ea77c07
commit
972e27a861
|
@ -381,6 +381,9 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) {
|
||||||
rootIsDir := strings.HasSuffix(root, "/")
|
rootIsDir := strings.HasSuffix(root, "/")
|
||||||
root = parsePath(root)
|
root = parsePath(root)
|
||||||
|
|
||||||
|
// add jottacloud to the long list of sites that don't follow the oauth spec correctly
|
||||||
|
oauth2.RegisterBrokenAuthHeaderProvider("https://www.jottacloud.com/")
|
||||||
|
|
||||||
// the oauth client for the api servers needs
|
// the oauth client for the api servers needs
|
||||||
// a filter to fix the grant_type issues (see above)
|
// a filter to fix the grant_type issues (see above)
|
||||||
baseClient := fshttp.NewClient(fs.Config)
|
baseClient := fshttp.NewClient(fs.Config)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user