diff --git a/viper.go b/viper.go index a3812e9..22d82d1 100644 --- a/viper.go +++ b/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 } }