mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
fshttp: read config from ctx not passed in ConfigInfo #4685
This commit is contained in:
@@ -1405,7 +1405,7 @@ func (o *Object) split() (bucket, bucketPath string) {
|
||||
// getClient makes an http client according to the options
|
||||
func getClient(ctx context.Context, opt *Options) *http.Client {
|
||||
// TODO: Do we need cookies too?
|
||||
t := fshttp.NewTransportCustom(fs.GetConfig(ctx), func(t *http.Transport) {
|
||||
t := fshttp.NewTransportCustom(ctx, func(t *http.Transport) {
|
||||
if opt.DisableHTTP2 {
|
||||
t.TLSNextProto = map[string]func(string, *tls.Conn) http.RoundTripper{}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user