From 93941d99c92001ee47eed4785deec5e0f49569ca Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 14 Jan 2025 15:48:42 -0800 Subject: [PATCH] Update server.py --- server.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server.py b/server.py index 6e9d7e1..a9fd876 100644 --- a/server.py +++ b/server.py @@ -60,16 +60,13 @@ def relay(): except: pass try: - recived = gemraw.decode() - print(recived) + recived = gemraw.decode().strip() except: binary = True print(traceback.format_exc()) if binary: return Response(bytes(gemcontent_binary), mimetype="text/gemini" if mimetype=="" else mimetype) - print(recived) received = received.replace("\r", "") - print(recived) firstline = True redirected = False gemtext = True