Skip to content

Commit

Permalink
Fix issue to not update DefaultTransport and use Clone (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
anujc25 authored Aug 30, 2024
1 parent 16326a5 commit 7278b25
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 7278b25

Please sign in to comment.