mirror of
https://github.com/spf13/viper
synced 2025-04-28 08:17:17 +00:00
Merge 228bb88a46
into 1508a7ba44
This commit is contained in:
commit
c6b73aaf6a
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -1218,7 +1218,7 @@ func (v *Viper) find(lcaseKey string, flagDefault bool) any {
|
||||||
envkeys, exists := v.env[lcaseKey]
|
envkeys, exists := v.env[lcaseKey]
|
||||||
if exists {
|
if exists {
|
||||||
for _, envkey := range envkeys {
|
for _, envkey := range envkeys {
|
||||||
if val, ok := v.getEnv(envkey); ok {
|
if val, ok := v.getEnv(strings.ToUpper(envkey)); ok {
|
||||||
return val
|
return val
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue