From 732309446f0ddee0626aa00e627195d5522acdeb Mon Sep 17 00:00:00 2001 From: Julien Laffaye Date: Mon, 20 May 2013 01:30:03 +0200 Subject: [PATCH] Use strings.TrimSpace() instead of strings.Trim(). --- ftp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftp.go b/ftp.go index 18f4b11..6e8b0f8 100644 --- a/ftp.go +++ b/ftp.go @@ -118,7 +118,7 @@ func (c *ServerConn) feat() error { continue } - line = strings.Trim(line, " ") + line = strings.TrimSpace(line) featureElements := strings.SplitN(line, " ", 2) command := featureElements[0]