From a595f7d8e4dd103afdbf0a7c1420d8d4c7fdde81 Mon Sep 17 00:00:00 2001 From: Peter Nguyen Date: Thu, 30 Oct 2014 11:55:46 +0100 Subject: [PATCH] Changed to using ReadResponse instead of ReadCodeLine for cmdDataConn --- 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