mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
fshttp: read config from ctx not passed in ConfigInfo #4685
This commit is contained in:
@@ -77,7 +77,7 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (f fs.Fs,
|
||||
return nil, err
|
||||
}
|
||||
root = parsePath(root)
|
||||
httpClient := fshttp.NewClient(fs.GetConfig(ctx))
|
||||
httpClient := fshttp.NewClient(ctx)
|
||||
oAuthClient, _, err := oauthutil.NewClientWithBaseClient(ctx, name, m, putioConfig, httpClient)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "failed to configure putio")
|
||||
|
||||
Reference in New Issue
Block a user