diff --git a/server.py b/server.py index 3421547..1cd2281 100644 --- a/server.py +++ b/server.py @@ -73,6 +73,8 @@ def relay(): i = i.replace("<", "<") if firstline: if i.split(" ")[0][0] == "3": + if i.split(" ")[1][0] == "/": + return redirect("/gem?gemini=" + urlparse(fulladdr).hostname + quote(i.split(" ")[1]), safe='') return redirect("/gem?gemini=" + quote(i.split(" ")[1][9:], safe='')) elif i.split(" ")[0][0] == "1": return f'\n
The specified Gemini server wants more data:
{i}'