Skip to content

Commit d0af988

Browse files
allow pointer transport on tls aware impl
1 parent 6e2837b commit d0af988

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

edge-apis/http_components.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ var _ TlsAwareTransport = (*TlsAwareHttpTransport)(nil)
101101

102102
// TlsAwareHttpTransport is a concrete implementation of TlsAwareTransport that wraps http.Transport.
103103
type TlsAwareHttpTransport struct {
104-
http.Transport
104+
*http.Transport
105105
}
106106

107107
// NewTlsAwareHttpTransport creates a TlsAwareHttpTransport with default HTTP/2 and TLS settings.
108108
func NewTlsAwareHttpTransport(cfg *ComponentsConfig) *TlsAwareHttpTransport {
109109
tlsClientConfig, _ := rest_util.NewTlsConfig()
110110

111111
authAwareTransport := &TlsAwareHttpTransport{
112-
http.Transport{
112+
&http.Transport{
113113
TLSClientConfig: tlsClientConfig,
114114
ForceAttemptHTTP2: true,
115115
MaxIdleConns: 10,

0 commit comments

Comments
 (0)