Merge pull request #190 from ncw/fix-pureftpd
Workaround pure-ftpd connections failing with "Unknown command"
This commit is contained in:
commit
13949d3891
2
ftp.go
2
ftp.go
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user