Fix session ID issue, we only need a new session when we really need a new session, i.e. give people a way to ask for it instead of trying to guess

This commit is contained in:
idk
2020-11-22 12:31:20 -05:00
parent 9baee36493
commit 3c5397e87f
6 changed files with 51 additions and 23 deletions

View File

@ -63,7 +63,8 @@ func parseReply(line string) (*Reply, error) {
} else {
kvPair := strings.SplitN(v, "=", 2)
if kvPair != nil {
if len(kvPair) != 2 {
if len(kvPair) == 1 {
} else if len(kvPair) != 2 {
return nil, fmt.Errorf("Malformed key-value-pair.\n%s\n", kvPair)
}
}