Skip to content

Commit

Permalink
Merge pull request #48 from datadrivers/support-proxy
Browse files Browse the repository at this point in the history
Add support for proxy config from environment
  • Loading branch information
ruedigerblock authored Jan 21, 2021
2 parents d20f937 + 7b58025 commit 43c526c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func NewClient(config Config) Client {
contentType: ContentTypeApplicationJSON,
httpClient: &http.Client{
Timeout: 30 * time.Second,
Proxy: http.ProxyFromEnvironment,
Transport: &http.Transport{
TLSClientConfig: &tls.Config{
InsecureSkipVerify: config.Insecure,
Expand Down

0 comments on commit 43c526c

Please sign in to comment.