Update server.py

This commit is contained in:
Nova Cat 2025-01-14 15:26:19 -08:00
parent 64cdeb2157
commit fe4af6b34b

View file

@ -53,7 +53,6 @@ def relay():
found = True
mimetype = bytes(gemraw).decode()[:-1].split(" ")[1]
ok = bytes(gemraw).decode()[:-1].split(" ")[0][0] == 2
print(mimetype)
except:
pass
try:
@ -65,7 +64,7 @@ def relay():
binary = True
except:
return f'<!DOCTYPE html>\n<html><head><meta charset="UTF-8"><link rel="stylesheet" href="/style.css"><title>Something went wrong...</title></head><body><h1>Something went wrong...</h1><p>The file that the Gemini server sent couldn\'t be decoded by Gem2Browser.</p></body></html>'
print(num)
print(mimetype)
if num == 1:
print(mimetype)
for i in bytes(gemraw):