From f7ef958cf46c83cb5b1e9a175ae8dcf4cd98ab35 Mon Sep 17 00:00:00 2001 From: swee Date: Mon, 13 Jan 2025 21:57:44 -0800 Subject: [PATCH] Update server.py --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 69d4e3b..31b5b31 100644 --- a/server.py +++ b/server.py @@ -51,7 +51,7 @@ def relay(): elif num >= 2 and ok and not mimetype in ["text/gemini", ""]: for i in gemresponse: gemraw.append(i) - if mimetype in ["text/gemini", ""] and gemresponse.decode() != "": + if ok and mimetype in ["text/gemini", ""] and gemresponse.decode() != "": received += gemresponse.decode() else: break