mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 21:01:31 +00:00
Update ini.go
change the key to lowercase when set a new key for ini configer
This commit is contained in:
parent
323a1c4214
commit
d5c03f5b8f
@ -416,7 +416,7 @@ func (c *IniConfigContainer) Set(key, value string) error {
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
section, k string
|
section, k string
|
||||||
sectionKey = strings.Split(key, "::")
|
sectionKey = strings.Split(strings.ToLower(key), "::")
|
||||||
)
|
)
|
||||||
|
|
||||||
if len(sectionKey) >= 2 {
|
if len(sectionKey) >= 2 {
|
||||||
|
Loading…
Reference in New Issue
Block a user