Skip to content

Commit

Permalink
Adds http.ProxyFromEnvironment to transports for clients
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Moran committed Feb 3, 2017
1 parent 9ad9191 commit 0184074
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions network/oauth_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func NewOAuthClient(target, username, password string, insecureSkipVerify bool,

httpclient := &http.Client{
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: &tls.Config{
InsecureSkipVerify: insecureSkipVerify,
},
Expand Down
1 change: 1 addition & 0 deletions network/unauthenticated_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ func NewUnauthenticatedClient(target string, insecureSkipVerify bool, requestTim
target: target,
client: &http.Client{
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
TLSClientConfig: &tls.Config{
InsecureSkipVerify: insecureSkipVerify,
},
Expand Down

0 comments on commit 0184074

Please sign in to comment.