From fe073446c49c5579b6635c7cfa3a4cf43a35d45d Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Sun, 7 Mar 2021 16:12:56 -0600 Subject: do EC by accident? --- csci4131/hw4/strap012/strap012.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'csci4131') diff --git a/csci4131/hw4/strap012/strap012.py b/csci4131/hw4/strap012/strap012.py index d6d6385..905fd7b 100644 --- a/csci4131/hw4/strap012/strap012.py +++ b/csci4131/hw4/strap012/strap012.py @@ -36,7 +36,7 @@ def getContents(type, file): def client_recv(client_sock, client_addr): print('talking to {}'.format(client_addr)) data = client_sock.recv(BUFSIZE) - data = data.decode('utf-8').replace("\r", "") + data = data.decode('utf-8').strip("\r") data = data.split("\n") request = data[0].split(" ") want = getContents(request[0], request[1][1:]) -- cgit v1.2.3