1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-06 08:16:19 +02:00

Proxy values should not be made uppercase

This commit is contained in:
Don 2016-11-03 11:57:19 -07:00 committed by GitHub
parent fd620bd5e8
commit d6fa9f5177

View File

@ -32,15 +32,15 @@ func Environ(c *yaml.Config, envs map[string]string) error {
}
if httpProxy != "" {
p.Environment["HTTP_PROXY"] = httpProxy
p.Environment["http_proxy"] = strings.ToUpper(httpProxy)
p.Environment["http_proxy"] = httpProxy
}
if httpsProxy != "" {
p.Environment["HTTPS_PROXY"] = httpsProxy
p.Environment["https_proxy"] = strings.ToUpper(httpsProxy)
p.Environment["https_proxy"] = httpsProxy
}
if noProxy != "" {
p.Environment["NO_PROXY"] = noProxy
p.Environment["no_proxy"] = strings.ToUpper(noProxy)
p.Environment["no_proxy"] = noProxy
}
}
return nil