From 0a6572881e5d85fdbb489f9dfb6c457036d3fe45 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Tue, 5 May 2020 13:22:37 +0200 Subject: [PATCH] Udpate ftpMock --- conn_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conn_test.go b/conn_test.go index 47baeea..b8b8172 100644 --- a/conn_test.go +++ b/conn_test.go @@ -75,7 +75,7 @@ func (mock *ftpMock) listen(t *testing.T) { // At least one command must have a multiline response switch cmdParts[0] { case "FEAT": - mock.proto.Writer.PrintfLine("211-Features:\r\n FEAT\r\n PASV\r\n EPSV\r\n SIZE\r\n211 End") + mock.proto.Writer.PrintfLine("211-Features:\r\n FEAT\r\n PASV\r\n EPSV\r\n UTF8\r\n SIZE\r\n211 End") case "USER": if cmdParts[1] == "anonymous" { mock.proto.Writer.PrintfLine("331 Please send your password") @@ -196,6 +196,8 @@ func (mock *ftpMock) listen(t *testing.T) { mock.proto.Writer.PrintfLine("350 Restarting at %s. Send STORE or RETRIEVE to initiate transfer", cmdParts[1]) case "NOOP": mock.proto.Writer.PrintfLine("200 NOOP ok.") + case "OPTS UTF8 ON": + mock.proto.Writer.PrintfLine("200 OK, UTF-8 enabled") case "REIN": mock.proto.Writer.PrintfLine("220 Logged out") case "QUIT":