Update server.py

This commit is contained in:
Nova Cat 2025-01-13 21:57:44 -08:00
parent 72cfcfbdd1
commit f7ef958cf4

View file

@ -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