Skip to content

Commit

Permalink
Fix DefaultTransport getting updated when creating Tanzu Hub Client (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
anujc25 authored Aug 30, 2024
1 parent b344be6 commit d85a08f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/hub/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (c *hubClient) initializeClient(contextName string) error {
}
}

transport := http.DefaultTransport.(*http.Transport)
transport := http.DefaultTransport.(*http.Transport).Clone()
transport.TLSClientConfig = c.getTLSConfig()

// Set httpClient if it is not already set
Expand Down

0 comments on commit d85a08f

Please sign in to comment.