Allow multi-line 226 responses to STOR commands - fixes #17

This commit is contained in:
jfbus 2014-03-25 09:35:34 +01:00
parent 1a1cdac5e4
commit d54ea712cb

2
ftp.go
View File

@ -417,7 +417,7 @@ func (c *ServerConn) Stor(path string, r io.Reader) error {
return err return err
} }
_, _, err = c.conn.ReadCodeLine(StatusClosingDataConnection) _, _, err = c.conn.ReadResponse(StatusClosingDataConnection)
return err return err
} }