Use strings.TrimSpace() instead of strings.Trim().
This commit is contained in:
parent
b82b87bce2
commit
732309446f
2
ftp.go
2
ftp.go
@ -118,7 +118,7 @@ func (c *ServerConn) feat() error {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
line = strings.Trim(line, " ")
|
line = strings.TrimSpace(line)
|
||||||
featureElements := strings.SplitN(line, " ", 2)
|
featureElements := strings.SplitN(line, " ", 2)
|
||||||
|
|
||||||
command := featureElements[0]
|
command := featureElements[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user