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