mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 22:11:29 +00:00
Merge remote-tracking branch 'astaxie/master'
This commit is contained in:
commit
6f3803ce8c
2
beego.go
2
beego.go
@ -11,7 +11,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// beego web framework version.
|
// beego web framework version.
|
||||||
const VERSION = "1.0.0"
|
const VERSION = "1.0.1"
|
||||||
|
|
||||||
// Router adds a patterned controller handler to BeeApp.
|
// Router adds a patterned controller handler to BeeApp.
|
||||||
// it's an alias method of App.Router.
|
// it's an alias method of App.Router.
|
||||||
|
@ -166,6 +166,9 @@ func (c *IniConfigContainer) Set(key, value string) error {
|
|||||||
section = DEFAULT_SECTION
|
section = DEFAULT_SECTION
|
||||||
k = sectionkey[0]
|
k = sectionkey[0]
|
||||||
}
|
}
|
||||||
|
if _, ok := c.data[section]; !ok {
|
||||||
|
c.data[section] = make(map[string]string)
|
||||||
|
}
|
||||||
c.data[section][k] = value
|
c.data[section][k] = value
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user