Merge branch 'feature/connect'

This commit is contained in:
SunRunAway
2013-07-08 13:59:53 +08:00
2 changed files with 18 additions and 1 deletions

2
ftp.go
View File

@@ -60,7 +60,7 @@ func Connect(addr string) (*ServerConn, error) {
features: make(map[string]string),
}
_, _, err = c.conn.ReadCodeLine(StatusReady)
_, _, err = c.conn.ReadResponse(StatusReady)
if err != nil {
c.Quit()
return nil, err