Skip to content

Commit

Permalink
Merge pull request #5064 from k0sproject/respect-env-proxy-on-download
Browse files Browse the repository at this point in the history
bug: respect proxy from env when downloading
  • Loading branch information
ricardomaraschini authored Oct 2, 2024
2 parents 75ca2c6 + 203dd13 commit ca87854
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/http/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func Download(ctx context.Context, url string, target io.Writer, options ...Down
Transport: &http.Transport{
// This is a one-shot HTTP client which should release resources immediately.
DisableKeepAlives: true,
Proxy: http.ProxyFromEnvironment,
},
}
req, err := http.NewRequest("GET", url, nil)
Expand Down

0 comments on commit ca87854

Please sign in to comment.