From 972e27a861b72ece88b00023780fd6c509690f45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=BCnger?= Date: Thu, 21 Feb 2019 18:47:20 +0100 Subject: [PATCH] jottacloud: fix token refresh - fixes #2992 --- backend/jottacloud/jottacloud.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/jottacloud/jottacloud.go b/backend/jottacloud/jottacloud.go index 62bd394c2..4bbc705da 100644 --- a/backend/jottacloud/jottacloud.go +++ b/backend/jottacloud/jottacloud.go @@ -381,6 +381,9 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) { rootIsDir := strings.HasSuffix(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 // a filter to fix the grant_type issues (see above) baseClient := fshttp.NewClient(fs.Config)