diff --git a/beego.go b/beego.go index b2d22cc2..64e224da 100644 --- a/beego.go +++ b/beego.go @@ -11,7 +11,7 @@ import ( ) // beego web framework version. -const VERSION = "1.0.0" +const VERSION = "1.0.1" // Router adds a patterned controller handler to BeeApp. // it's an alias method of App.Router. diff --git a/config/ini.go b/config/ini.go index 6ac79295..22c23f40 100644 --- a/config/ini.go +++ b/config/ini.go @@ -166,6 +166,9 @@ func (c *IniConfigContainer) Set(key, value string) error { section = DEFAULT_SECTION k = sectionkey[0] } + if _, ok := c.data[section]; !ok { + c.data[section] = make(map[string]string) + } c.data[section][k] = value return nil }