From 81dd648e355daece2901e51ce0d62e92d9482983 Mon Sep 17 00:00:00 2001 From: swee Date: Mon, 13 Jan 2025 21:53:30 -0800 Subject: [PATCH] Update server.py --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 7ab9d1a..3c48f0b 100644 --- a/server.py +++ b/server.py @@ -38,14 +38,14 @@ def relay(): while True: gemresponse = gemsocket.recv(2048) try: - if num = 0: + if num == 0: try: mimetype = gemresponse.decode().replace("\r","").split("\n")[0].split(" ")[1].split(";")[0] if mimetype != "text/gemini".lower() and gemresponse.decode().replace("\r","").split("\n")[0].split(" ")[0][0] != "2": print("Non-ordinary type! " + mimetype) except: pass - elif num = 1 and not mimetype in ["text/gemini", ""]: + elif num == 1 and not mimetype in ["text/gemini", ""]: pass elif num >= 2 and not mimetype in ["text/gemini", ""]: for i in gemresponse: