mirror of
https://github.com/spf13/viper
synced 2024-12-22 03:27:03 +00:00
fix: capitalize the second param in BindEnv
This commit is contained in:
parent
0add84cdf2
commit
228bb88a46
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -1286,7 +1286,7 @@ func (v *Viper) find(lcaseKey string, flagDefault bool) interface{} {
|
|||
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…
Reference in a new issue