mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-04 13:42:22 +00:00
Merge pull request #1843 from donny-dont/patch-3
Proxy values should not be made uppercase
This commit is contained in:
commit
232df356af
1 changed files with 3 additions and 4 deletions
|
@ -2,7 +2,6 @@ package transform
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
|
||||||
|
|
||||||
"github.com/drone/drone/yaml"
|
"github.com/drone/drone/yaml"
|
||||||
)
|
)
|
||||||
|
@ -32,15 +31,15 @@ func Environ(c *yaml.Config, envs map[string]string) error {
|
||||||
}
|
}
|
||||||
if httpProxy != "" {
|
if httpProxy != "" {
|
||||||
p.Environment["HTTP_PROXY"] = httpProxy
|
p.Environment["HTTP_PROXY"] = httpProxy
|
||||||
p.Environment["http_proxy"] = strings.ToUpper(httpProxy)
|
p.Environment["http_proxy"] = httpProxy
|
||||||
}
|
}
|
||||||
if httpsProxy != "" {
|
if httpsProxy != "" {
|
||||||
p.Environment["HTTPS_PROXY"] = httpsProxy
|
p.Environment["HTTPS_PROXY"] = httpsProxy
|
||||||
p.Environment["https_proxy"] = strings.ToUpper(httpsProxy)
|
p.Environment["https_proxy"] = httpsProxy
|
||||||
}
|
}
|
||||||
if noProxy != "" {
|
if noProxy != "" {
|
||||||
p.Environment["NO_PROXY"] = noProxy
|
p.Environment["NO_PROXY"] = noProxy
|
||||||
p.Environment["no_proxy"] = strings.ToUpper(noProxy)
|
p.Environment["no_proxy"] = noProxy
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue