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

This commit is contained in:
Julien Laffaye 2013-05-20 01:30:03 +02:00
parent b82b87bce2
commit 732309446f

2
ftp.go
View File

@ -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]