mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-09-26 18:51:13 +08:00
fix: get config key to lower
This commit is contained in:
@@ -54,6 +54,7 @@ func (config *Config) Get(key string) (v *Config) {
|
||||
if config.propsMap == nil {
|
||||
config.propsMap = make(map[string]*Config)
|
||||
}
|
||||
key = strings.ToLower(key)
|
||||
if v, ok := config.propsMap[key]; ok {
|
||||
return v
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user