From ad9769fe45df7c706afd8b24eae38895b93e9377 Mon Sep 17 00:00:00 2001 From: swee Date: Sun, 12 Jan 2025 22:46:09 -0800 Subject: [PATCH] Update server.py --- server.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server.py b/server.py index d3e4f49..5bd8c2e 100644 --- a/server.py +++ b/server.py @@ -44,7 +44,7 @@ def relay(): received = "" while True: gemresponse = gemsocket.recv(2048) - if gemresponse: + if gemresponse != "": received += gemresponse.decode() else: break @@ -85,7 +85,6 @@ def relay(): title = "gemini://" + url except: code += traceback.format_exc() - print(code) return f'\n{title}{code}' # Run the Hypercorn ASGI server