Update server.py

This commit is contained in:
Nova Cat 2025-01-12 22:44:28 -08:00
parent 4af4a02395
commit 17c266456c

View file

@ -54,7 +54,6 @@ def relay():
gemtext = True
code = ""
for i in received.split("\n"):
print(i)
if firstline:
if i.split(" ")[0][0] == "3":
return redirect("/gem?gemini=" + i.split(" ")[1][9:])
@ -81,6 +80,7 @@ def relay():
code += f"<ul><li>{temp}</li></ul>"
else:
code += f"<p>{code}</p>\n"
print(i)
if title == "Something went wrong...":
title = "gemini://" + url
except: