fix(http): honor insecure-skip-very even if custom tls config is specified
parent
4f1c8ccf9a
commit
589d278b24
|
@ -121,6 +121,8 @@ func NewHTTPClient(conf HTTPConfig) (Client, error) {
|
|||
}
|
||||
if conf.TLSConfig != nil {
|
||||
tr.TLSClientConfig = conf.TLSConfig
|
||||
// Make sure to preserve the InsecureSkipVerify setting from the config.
|
||||
tr.TLSClientConfig.InsecureSkipVerify = conf.InsecureSkipVerify
|
||||
}
|
||||
return &client{
|
||||
url: *u,
|
||||
|
|
Loading…
Reference in New Issue