From 602e6909b9183dc0868b532d9cf31d16ad42b002 Mon Sep 17 00:00:00 2001 From: swee Date: Mon, 13 Jan 2025 21:55:55 -0800 Subject: [PATCH] Update server.py --- server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index ba10b35..f7e7eee 100644 --- a/server.py +++ b/server.py @@ -41,7 +41,9 @@ def relay(): 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(gemresponse.decode().replace("\r","").split("\n")[0].split(" ")[0]) + ok = gemresponse.decode().replace("\r","").split("\n")[0].split(" ")[0][0] != "2" + if mimetype != "text/gemini".lower() and ok: print("Non-ordinary type! " + mimetype) except: pass