Skip to content

need to set tlsconfig insecure

Jianwei Mao edited this page Jul 8, 2022 · 1 revision
client := http.Client{}
if skipCertCheck {
	client.Transport = &http.Transport{
		TLSClientConfig: &tls.Config{
			InsecureSkipVerify: true,
		},
	}
}
Clone this wiki locally