mirror of
https://github.com/spf13/viper
synced 2024-12-23 12:07:02 +00:00
Insensitivise indexes on creation
This commit is contained in:
parent
10c9322d34
commit
34ced34b4f
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -610,7 +610,7 @@ func (v *Viper) indexMap(source map[string]interface{}, prefix string) {
|
||||||
|
|
||||||
for key, val := range source {
|
for key, val := range source {
|
||||||
|
|
||||||
indexPath := prefix + key
|
indexPath := strings.ToLower(prefix + key)
|
||||||
|
|
||||||
v.index[indexPath] = val
|
v.index[indexPath] = val
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue