Skip to content

Commit 23a0461

Browse files
committed
Set lower-case variants of HTTP_PROXY and HTTPS_PROXY
1 parent 711d497 commit 23a0461

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

go/extractor/util/registryproxy.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ func getEnvVars() []string {
5353
if proxy_host, proxy_host_set := os.LookupEnv(PROXY_HOST); proxy_host_set && proxy_host != "" {
5454
if proxy_port, proxy_port_set := os.LookupEnv(PROXY_PORT); proxy_port_set && proxy_port != "" {
5555
proxy_address = fmt.Sprintf("http://%s:%s", proxy_host, proxy_port)
56-
result = append(result, fmt.Sprintf("HTTP_PROXY=%s", proxy_address), fmt.Sprintf("HTTPS_PROXY=%s", proxy_address))
56+
result = append(
57+
result,
58+
fmt.Sprintf("HTTP_PROXY=%s", proxy_address),
59+
fmt.Sprintf("HTTPS_PROXY=%s", proxy_address),
60+
fmt.Sprintf("http_proxy=%s", proxy_address),
61+
fmt.Sprintf("https_proxy=%s", proxy_address),
62+
)
5763

5864
slog.Info("Found private registry proxy", slog.String("proxy_address", proxy_address))
5965
}

0 commit comments

Comments
 (0)