Update server.py
This commit is contained in:
parent
22a832790e
commit
22650e56f7
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue