mirror of
https://github.com/spf13/viper
synced 2025-04-27 15:57:19 +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]
|
||||
if exists {
|
||||
for _, envkey := range envkeys {
|
||||
if val, ok := v.getEnv(envkey); ok {
|
||||
if val, ok := v.getEnv(strings.ToUpper(envkey)); ok {
|
||||
return val
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue