Merge pull request #34383 from wrfly/patch-1
fix client.Transport verify Upstream-commit: 7843e40ad5df83671615a61c904930a701896f52 Component: engine
This commit is contained in:
@ -165,7 +165,7 @@ func NewClient(host string, version string, client *http.Client, httpHeaders map
|
||||
}
|
||||
|
||||
if client != nil {
|
||||
if _, ok := client.Transport.(*http.Transport); !ok {
|
||||
if _, ok := client.Transport.(http.RoundTripper); !ok {
|
||||
return nil, fmt.Errorf("unable to verify TLS configuration, invalid transport %v", client.Transport)
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user