Merge pull request #80 from mappu/master

ftp: fix OPTS UTF8 ON for Filezilla Server
This commit is contained in:
Julien Laffaye 2017-03-04 13:04:48 +01:00 committed by GitHub
commit cb3924c5c9

7
ftp.go
View File

@ -186,6 +186,13 @@ func (c *ServerConn) setUTF8() error {
return err
}
// The ftpd "filezilla-server" has FEAT support for UTF8, but always returns
// "202 UTF8 mode is always enabled. No need to send this command." when
// trying to use it. That's OK
if code == StatusCommandNotImplemented {
return nil
}
if code != StatusCommandOK {
return errors.New(message)
}