Skip to content

Commit

Permalink
Use http.DefaultTransport (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
logand22 authored Jul 23, 2024
1 parent 9ca0644 commit cf5f641
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/cmd/authenticated/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ func configureTLS(httpClient *http.Client) error {
clientTLS.Certificates = []tls.Certificate{cert}
}

httpClient.Transport = &http.Transport{
TLSClientConfig: clientTLS,
}
transport := http.DefaultTransport.(*http.Transport).Clone()
transport.TLSClientConfig = clientTLS

httpClient.Transport = transport

return nil
}

0 comments on commit cf5f641

Please sign in to comment.