forked from mirror/redis
Merge pull request #1189 from WTIFS/master
Set key to lowercase in cmdsInfoCache.Get()
This commit is contained in:
commit
eb64034d44
|
@ -2005,6 +2005,12 @@ func (c *cmdsInfoCache) Get() (map[string]*CommandInfo, error) {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
for key := range cmds {
|
||||
lowerKey := internal.ToLower(key)
|
||||
if key != lowerKey {
|
||||
cmds[lowerKey] = cmds[key]
|
||||
}
|
||||
}
|
||||
c.cmds = cmds
|
||||
return nil
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue