Skip to content

Commit

Permalink
Exposes NewTLSRoundTripper method
Browse files Browse the repository at this point in the history
Signed-off-by: someshkoli <[email protected]>
  • Loading branch information
someshkoli committed May 18, 2021
1 parent c9ab59f commit 895cc51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/http_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 895cc51

Please sign in to comment.