Merge pull request #18 from SoCloz/master

Allow multi-line 226 responses to STOR commands - fixes #17
This commit is contained in:
Julien Laffaye 2014-03-25 09:38:02 +01:00
commit fec71e62e4

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
} }