From 37f1f38818296a6608abd56a469792cd95303a04 Mon Sep 17 00:00:00 2001 From: Sergey Gavruk Date: Thu, 30 Oct 2014 18:42:33 +0300 Subject: [PATCH] Multi-line response support --- ftp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftp.go b/ftp.go index 24e0450..5fe19fe 100644 --- a/ftp.go +++ b/ftp.go @@ -251,7 +251,7 @@ func (c *ServerConn) cmdDataConn(format string, args ...interface{}) (net.Conn, return nil, err } - code, msg, err := c.conn.ReadCodeLine(-1) + code, msg, err := c.conn.ReadResponse(-1) if err != nil { conn.Close() return nil, err