Skip to content

Commit 895cc51

Browse files
committed
Exposes NewTLSRoundTripper method
Signed-off-by: someshkoli <[email protected]>
1 parent c9ab59f commit 895cc51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/http_config.go

Lines changed: 2 additions & 2 deletions
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)