From d54ea712cb2262cdb68ff8a2fb13f27ea80d985a Mon Sep 17 00:00:00 2001 From: jfbus Date: Tue, 25 Mar 2014 09:35:34 +0100 Subject: [PATCH] Allow multi-line 226 responses to STOR commands - fixes #17 --- ftp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftp.go b/ftp.go index 673a5ae..24e0450 100644 --- a/ftp.go +++ b/ftp.go @@ -417,7 +417,7 @@ func (c *ServerConn) Stor(path string, r io.Reader) error { return err } - _, _, err = c.conn.ReadCodeLine(StatusClosingDataConnection) + _, _, err = c.conn.ReadResponse(StatusClosingDataConnection) return err }