1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-12 14:21:52 +03:00

Lowercase command name.

This commit is contained in:
Vladimir Mihailenco
2016-10-14 10:37:30 +03:00
parent 11137670ac
commit a65b760eec
2 changed files with 31 additions and 0 deletions

View File

@ -146,6 +146,10 @@ func (cmd *baseCmd) setErr(e error) {
}
func newBaseCmd(args []interface{}) baseCmd {
if len(args) > 0 {
// Cmd name is expected to be in lower case.
args[0] = internal.ToLower(args[0].(string))
}
return baseCmd{_args: args}
}