diff --git a/server.py b/server.py index 1cd2281..7d77e95 100644 --- a/server.py +++ b/server.py @@ -74,7 +74,7 @@ def relay(): 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=" + 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}'