From 1d47a69361a92b596f4b40b315059c3cace35e5d Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Thu, 7 May 2015 16:46:37 +0200 Subject: [PATCH] fakeftp I mode --- fakeftp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fakeftp.py b/fakeftp.py index afb518e..77752d2 100644 --- a/fakeftp.py +++ b/fakeftp.py @@ -549,8 +549,8 @@ class PrintWorkingDirectoryCommandHandler(CommandHandler): class SetTypeCommandHandler(CommandHandler): cmd = "TYPE" def process(self, handler, message): - if message.parameter == "A": - handler.log("Setting type to ASCII") + if message.parameter == "A" or message.parameter == "I": + handler.log("Setting type to " + message.parameter) handler.send( TypeSetMessage(message.parameter) ) else: handler.log("Unrecognized type %s" % message.parameter) @@ -796,4 +796,4 @@ while True: port += 1 else: print "Failed to find a port" - break \ No newline at end of file + break