diff --git a/viper.go b/viper.go index 47c5ae7..3758af2 100644 --- a/viper.go +++ b/viper.go @@ -610,7 +610,7 @@ func (v *Viper) indexMap(source map[string]interface{}, prefix string) { for key, val := range source { - indexPath := prefix + key + indexPath := strings.ToLower(prefix + key) v.index[indexPath] = val