From b6b3dd3a3578c1c2a5f257a8ab99055a3a0e1cae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 25 Apr 2021 18:20:55 +0200 Subject: [PATCH] fixd --- server/server.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/server.py b/server/server.py index 2d4e0b0..812aab1 100644 --- a/server/server.py +++ b/server/server.py @@ -94,11 +94,10 @@ class Server: if secondParam != "": self.networkInstance.sendMessage("ERROR".encode('UTF-8')) else: - fileName = firstParam fileMessage = self.networkInstance.recieveMessage() - eof = self.networkInstance.recieveEncryptedMessage().decode('UTF-8') + eof = self.networkInstance.recieveMessage().decode('UTF-8') if eof == "EOF": - self.executor.putFileInCurrentDirectory(fileName, fileMessage) + self.executor.putFileInCurrentDirectory(firstParam, fileMessage) self.networkInstance.sendMessage("OK".encode('UTF-8')) else: self.networkInstance.sendMessage("ERROR".encode('UTF-8'))