Skip to content

Commit

Permalink
Merge pull request redis#1189 from WTIFS/master
Browse files Browse the repository at this point in the history
Set key to lowercase in cmdsInfoCache.Get()
  • Loading branch information
vmihailenco authored Nov 19, 2019
2 parents 206581a + b32ffae commit eb64034
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit eb64034

Please sign in to comment.