mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
Fix reading zero-length bulk reply.
This commit is contained in:
@ -107,8 +107,6 @@ func ParseReply(rd ReadLiner) (interface{}, error) {
|
||||
case '$':
|
||||
if len(line) == 3 && line[1] == '-' && line[2] == '1' {
|
||||
return "", Nil
|
||||
} else if len(line) == 2 && line[1] == '0' {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
replyLenInt32, err := strconv.ParseInt(string(line[1:]), 10, 32)
|
||||
|
Reference in New Issue
Block a user