diff --git a/config/http_config.go b/config/http_config.go index d19221a2..350baf75 100644 --- a/config/http_config.go +++ b/config/http_config.go @@ -420,7 +420,7 @@ func NewRoundTripperFromConfig(cfg HTTPClientConfig, name string, optFuncs ...HT return newRT(tlsConfig) } - return newTLSRoundTripper(tlsConfig, cfg.TLSConfig.CAFile, newRT) + return NewTLSRoundTripper(tlsConfig, cfg.TLSConfig.CAFile, newRT) } type authorizationCredentialsRoundTripper struct { @@ -717,7 +717,7 @@ type tlsRoundTripper struct { tlsConfig *tls.Config } -func newTLSRoundTripper( +func NewTLSRoundTripper( cfg *tls.Config, caFile string, newRT func(*tls.Config) (http.RoundTripper, error),