6f3803ce by 傅小黑

Merge remote-tracking branch 'astaxie/master'

2 parents a1f6039d d0e2c5c6
...@@ -11,7 +11,7 @@ import ( ...@@ -11,7 +11,7 @@ import (
11 ) 11 )
12 12
13 // beego web framework version. 13 // beego web framework version.
14 const VERSION = "1.0.0" 14 const VERSION = "1.0.1"
15 15
16 // Router adds a patterned controller handler to BeeApp. 16 // Router adds a patterned controller handler to BeeApp.
17 // it's an alias method of App.Router. 17 // it's an alias method of App.Router.
......
...@@ -166,6 +166,9 @@ func (c *IniConfigContainer) Set(key, value string) error { ...@@ -166,6 +166,9 @@ func (c *IniConfigContainer) Set(key, value string) error {
166 section = DEFAULT_SECTION 166 section = DEFAULT_SECTION
167 k = sectionkey[0] 167 k = sectionkey[0]
168 } 168 }
169 if _, ok := c.data[section]; !ok {
170 c.data[section] = make(map[string]string)
171 }
169 c.data[section][k] = value 172 c.data[section][k] = value
170 return nil 173 return nil
171 } 174 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!