Skip to content

Commit 97807d8

Browse files
authored
Fix: clone default transport instead of using it for PDC (#229)
1 parent 096edf0 commit 97807d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/awsauth/settings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func (s Settings) WithHTTPClient() LoadOptionsFunc {
187187
if s.ProxyOptions != nil {
188188
if client, ok := options.HTTPClient.(*http.Client); ok {
189189
if client.Transport == nil {
190-
client.Transport = http.DefaultTransport
190+
client.Transport = http.DefaultTransport.(*http.Transport).Clone()
191191
}
192192
if transport, ok := client.Transport.(*http.Transport); ok {
193193
err := proxy.New(s.ProxyOptions).ConfigureSecureSocksHTTPProxy(transport)

0 commit comments

Comments
 (0)