Changed to using ReadResponse instead of ReadCodeLine for cmdDataConn

This commit is contained in:
Peter Nguyen 2014-10-30 11:55:46 +01:00
parent fec71e62e4
commit a595f7d8e4

2
ftp.go
View File

@ -251,7 +251,7 @@ func (c *ServerConn) cmdDataConn(format string, args ...interface{}) (net.Conn,
return nil, err
}
code, msg, err := c.conn.ReadCodeLine(-1)
code, msg, err := c.conn.ReadResponse(-1)
if err != nil {
conn.Close()
return nil, err