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]