From d4f36a710a2a0cb89f0b927f5630bab783d111dd Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 14 Jan 2025 15:45:21 -0800 Subject: [PATCH] Update server.py --- server.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server.py b/server.py index d8d0b49..a377911 100644 --- a/server.py +++ b/server.py @@ -56,10 +56,9 @@ def relay(): gemcontent_binary.append(i) if "\n" in bytes(mtype).decode() and not found: ok = bytes(mtype).decode().split(" ")[0][0] == "2" - mimetype = bytes(mtype).decode().split(" ")[1].split(";")[0] + mimetype = bytes(mtype).decode().replace("\r", "").split("\n")[0].split(" ")[1].split(";")[0] except: - binary = True - print(traceback.format_exc()) + pass try: if not binary: recived = gemraw.decode()