Merge remote-tracking branch 'astaxie/master'
Showing
2 changed files
with
4 additions
and
1 deletions
| ... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment