Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Commit

Permalink
KEYCLOAK-16523 Respect proxy settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nbjohnson authored and slaskawi committed Dec 11, 2020
1 parent 2d19aae commit 0fec45d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/common/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -726,9 +726,9 @@ func (c *Client) login(user, pass string) error {

// defaultRequester returns a default client for requesting http endpoints
func defaultRequester() Requester {
transport := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, // nolint
}
transport := http.DefaultTransport.(*http.Transport).Clone() // nolint
transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true} // nolint

c := &http.Client{Transport: transport, Timeout: time.Second * 10}
return c
}
Expand Down

0 comments on commit 0fec45d

Please sign in to comment.