Skip to content

Commit 5454dab

Browse files
committed
feat(proxy): Support proxy envvars
1 parent febba38 commit 5454dab

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)