Merge pull request #22 from pengux/master
Changed to using ReadResponse instead of ReadCodeLine for cmdDataConn
This commit is contained in:
commit
80fcd9720b
2
ftp.go
2
ftp.go
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user