mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 10:10:54 +00:00
Merge pull request #2555 from Liaodd/master
Update ini.go: change the key to lowercase when set a new key for ini configer
This commit is contained in:
commit
d03285a0ee
@ -421,7 +421,7 @@ func (c *IniConfigContainer) Set(key, value string) error {
|
||||
|
||||
var (
|
||||
section, k string
|
||||
sectionKey = strings.Split(key, "::")
|
||||
sectionKey = strings.Split(strings.ToLower(key), "::")
|
||||
)
|
||||
|
||||
if len(sectionKey) >= 2 {
|
||||
|
Loading…
Reference in New Issue
Block a user