Multi-line response support

This commit is contained in:
Sergey Gavruk committed 2014-10-30 18:42:33 +03:00
1 parent fec71e62e4
commit 37f1f38818
1 file changed
+1 -1
+1 -1
View File
@@ -251,7 +251,7 @@ func (c *ServerConn) cmdDataConn(format string, args ...interface{}) (net.Conn,
return nil, err return nil, err
} }
code, msg, err := c.conn.ReadCodeLine(-1) code, msg, err := c.conn.ReadResponse(-1)
if err != nil { if err != nil {
conn.Close() conn.Close()
return nil, err return nil, err