Skip to content

Commit 94e1ce6

Browse files
committed
Set lower-case variants of HTTP_PROXY and HTTPS_PROXY
1 parent 4df8935 commit 94e1ce6

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
@@ -56,7 +56,13 @@ func getEnvVars() []string {
5656
if proxy_host, proxy_host_set := os.LookupEnv(PROXY_HOST); proxy_host_set && proxy_host != "" {
5757
if proxy_port, proxy_port_set := os.LookupEnv(PROXY_PORT); proxy_port_set && proxy_port != "" {
5858
proxy_address = fmt.Sprintf("http://%s:%s", proxy_host, proxy_port)
59-
result = append(result, fmt.Sprintf("HTTP_PROXY=%s", proxy_address), fmt.Sprintf("HTTPS_PROXY=%s", proxy_address))
59+
result = append(
60+
result,
61+
fmt.Sprintf("HTTP_PROXY=%s", proxy_address),
62+
fmt.Sprintf("HTTPS_PROXY=%s", proxy_address),
63+
fmt.Sprintf("http_proxy=%s", proxy_address),
64+
fmt.Sprintf("https_proxy=%s", proxy_address),
65+
)
6066

6167
slog.Info("Found private registry proxy", slog.String("proxy_address", proxy_address))
6268
}

0 commit comments

Comments
 (0)