Merge pull request #190 from ncw/fix-pureftpd

Workaround pure-ftpd connections failing with "Unknown command"
This commit is contained in:
Julien Laffaye
2020-07-20 15:47:10 -04:00
committed by GitHub

2
ftp.go
View File

@@ -346,7 +346,7 @@ func (c *ServerConn) setUTF8() error {
}
// Workaround for FTP servers, that does not support this option.
if code == StatusBadArguments {
if code == StatusBadArguments || code == StatusNotImplementedParameter {
return nil
}