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: