Skip to content

Commit

Permalink
Revert "Use cleanhttp.DefaultPooledTransport for the default API clie…
Browse files Browse the repository at this point in the history
…nt (#12409)" (#12480)

This reverts commit 6e1270d.
  • Loading branch information
tgross authored Apr 6, 2022
1 parent a573dec commit f217185
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions .changelog/12409.txt

This file was deleted.

2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func (t *TLSConfig) Copy() *TLSConfig {
}

func defaultHttpClient() *http.Client {
httpClient := cleanhttp.DefaultPooledClient()
httpClient := cleanhttp.DefaultClient()
transport := httpClient.Transport.(*http.Transport)
transport.TLSHandshakeTimeout = 10 * time.Second
transport.TLSClientConfig = &tls.Config{
Expand Down

0 comments on commit f217185

Please sign in to comment.