Use proxy in utils.ReadImageFromURL (#4637)

This commit is contained in:
WithoutPants 2024-02-29 11:28:30 +11:00 committed by GitHub
parent 945188a0ba
commit b4823bec8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ func ReadImageFromURL(ctx context.Context, url string) ([]byte, error) {
client := &http.Client{ client := &http.Client{
Transport: &http.Transport{ // ignore insecure certificates Transport: &http.Transport{ // ignore insecure certificates
TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
Proxy: http.ProxyFromEnvironment,
}, },
Timeout: imageGetTimeout, Timeout: imageGetTimeout,