Explorar el Código

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

Julien Laffaye hace 12 años
padre
commit
732309446f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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]