Update server.py

This commit is contained in:
Nova Cat 2025-01-12 22:43:10 -08:00
parent 22a832790e
commit 22650e56f7

View file

@ -56,7 +56,7 @@ def relay():
for i in received.split("\n"):
if firstline:
if i.split(" ")[0][0] == "3":
return redirect("/gem?gemini=" + i.split(" ")[1])
return redirect("/gem?gemini=" + i.split(" ")[1][9:])
elif i.split(" ")[0][0] != "2":
return f'<!DOCTYPE html>\n<html><head><meta charset="UTF-8"><link rel="stylesheet" href="https://swee.codes/style.css"><title>Something went wrong...</title></head><body><h1>Something went wrong...</h1><p>The specified Gemini server returned a status of: {i}</p></body></html>'
else: