Skip to content

Commit

Permalink
Merge pull request #301 from someshkoli/expose-newTLSTripper
Browse files Browse the repository at this point in the history
http_config: Exposes NewTLSRoundTripper method
  • Loading branch information
roidelapluie committed May 18, 2021
2 parents c9ab59f + 895cc51 commit f45215c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/http_config.go
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 f45215c

Please sign in to comment.