mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 15:38:57 +01:00
oauthutil: fix panic from use of nil context
This commit is contained in:
parent
db6009126d
commit
edfa1b3a69
@ -188,7 +188,7 @@ var _ oauth2.TokenSource = (*TokenSource)(nil)
|
||||
|
||||
// Context returns a context with our HTTP Client baked in for oauth2
|
||||
func Context() context.Context {
|
||||
return context.WithValue(nil, oauth2.HTTPClient, fs.Config.Client())
|
||||
return context.WithValue(context.Background(), oauth2.HTTPClient, fs.Config.Client())
|
||||
}
|
||||
|
||||
// overrideCredentials sets the ClientID and ClientSecret from the
|
||||
|
Loading…
Reference in New Issue
Block a user