From 895cc51c1c1e0979a9a94e8d91caf962da355916 Mon Sep 17 00:00:00 2001 From: someshkoli Date: Wed, 19 May 2021 04:05:09 +0530 Subject: [PATCH] Exposes `NewTLSRoundTripper` method Signed-off-by: someshkoli --- config/http_config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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),