Skip to content

Commit f45215c

Browse files
author
Julien Pivotto
authored
Merge pull request #301 from someshkoli/expose-newTLSTripper
http_config: Exposes NewTLSRoundTripper method
2 parents c9ab59f + 895cc51 commit f45215c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/http_config.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ func NewRoundTripperFromConfig(cfg HTTPClientConfig, name string, optFuncs ...HT
420420
return newRT(tlsConfig)
421421
}
422422

423-
return newTLSRoundTripper(tlsConfig, cfg.TLSConfig.CAFile, newRT)
423+
return NewTLSRoundTripper(tlsConfig, cfg.TLSConfig.CAFile, newRT)
424424
}
425425

426426
type authorizationCredentialsRoundTripper struct {
@@ -717,7 +717,7 @@ type tlsRoundTripper struct {
717717
tlsConfig *tls.Config
718718
}
719719

720-
func newTLSRoundTripper(
720+
func NewTLSRoundTripper(
721721
cfg *tls.Config,
722722
caFile string,
723723
newRT func(*tls.Config) (http.RoundTripper, error),

0 commit comments

Comments
 (0)