We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fee90c commit 9cbd683Copy full SHA for 9cbd683
1 file changed
internal/argocd/argocd_client.go
@@ -20,11 +20,12 @@ type Client struct {
20
}
21
22
func NewClient(host string, token string, insecure bool) *Client {
23
- cl := http.DefaultClient
+ // When Transport is nil, the client uses http.DefaultTransport and does not mutate global state.
24
+ cl := &http.Client{}
25
if insecure {
26
cl.Transport = &http.Transport{
27
TLSClientConfig: &tls.Config{
- InsecureSkipVerify: insecure, //nolint:gosec
28
+ InsecureSkipVerify: true, //nolint:gosec
29
},
30
31
0 commit comments