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
commit 13949d3891
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
ftp.go
View File

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