mirror of
https://github.com/minio/minio.git
synced 2024-12-25 22:55:54 -05:00
fix: typo in parsing non remote env variables (#10223)
This commit is contained in:
parent
9138b2b503
commit
433c2831ae
2
pkg/env/web_env.go
vendored
2
pkg/env/web_env.go
vendored
@ -152,7 +152,7 @@ func LookupEnv(key string) (string, bool) {
|
|||||||
if ok {
|
if ok {
|
||||||
u, err := url.Parse(v)
|
u, err := url.Parse(v)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", false
|
return v, true
|
||||||
}
|
}
|
||||||
if !isValidEnvScheme(u.Scheme) {
|
if !isValidEnvScheme(u.Scheme) {
|
||||||
return v, true
|
return v, true
|
||||||
|
Loading…
Reference in New Issue
Block a user