Skip to content

Commit 3036122

Browse files
authored
Merge pull request #100 from sylus/master
feat(proxy): Support proxy envvars
2 parents febba38 + 5454dab commit 3036122

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sources/http.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ func newSourceHTTPClient() *http.Client {
251251
return &http.Client{
252252
Timeout: time.Duration(internal.HTTPClientTimeout) * time.Second,
253253
Transport: &http.Transport{
254+
Proxy: http.ProxyFromEnvironment,
254255
Dial: (&net.Dialer{
255256
Timeout: 30 * time.Second, // dial timeout
256257
KeepAlive: 30 * time.Second,

0 commit comments

Comments
 (0)