fix: Fixed bug - The flags --cert-file/--key-file where ignored when --insecure-skip-tls-verify flag is set

Signed-off-by: Dinu Mathai <Dinu.Mathai1@T-Mobile.com>
pull/9070/head
Dinu Mathai 5 years ago
parent 2be0d141a6
commit 4162fa3a28

@ -111,10 +111,13 @@ func (g *HTTPGetter) httpClient() (*http.Client, error) {
}
if g.opts.insecureSkipVerifyTLS {
if transport.TLSClientConfig == nil {
transport.TLSClientConfig = &tls.Config{
InsecureSkipVerify: true,
}
} else {
transport.TLSClientConfig.InsecureSkipVerify = true
}
}
client := &http.Client{

Loading…
Cancel
Save