From 34ced34b4fc702bb39cd276cdd6d3676dff3db77 Mon Sep 17 00:00:00 2001 From: Kiril Zvezdarov Date: Fri, 27 Mar 2015 13:40:31 -0400 Subject: [PATCH] Insensitivise indexes on creation --- viper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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