Browse Source

Use strings.TrimSpace() instead of strings.Trim().

Julien Laffaye 12 years ago
parent
commit
732309446f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ftp.go

+ 1 - 1
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]