Update server.py

This commit is contained in:
Nova Cat 2025-01-14 15:12:16 -08:00
parent 87141fbb18
commit 57eaf3ee57

View file

@ -42,6 +42,7 @@ def relay():
gemresponse = gemsocket.recv(2048)
try:
if num == 0:
print(gemresponse)
try:
mimetype = gemresponse.decode().replace("\r","").split("\n")[0].split(" ")[1].split(";")[0]
ok = gemresponse.decode().replace("\r","").split("\n")[0].split(" ")[0][0] == "2"