diff --git a/server.py b/server.py index fcfc9f2..3d4e353 100644 --- a/server.py +++ b/server.py @@ -90,13 +90,16 @@ def relay(): goto = temp.split(" ")[0] prse = urlparse(goto) extra = "" + print(goto) if prse.netloc == "" and prse.scheme == "": isdir = url[len(url) - 1] == "/" if isdir: + print(url + goto) tempurl = url + goto else: tempurl = "/".join(url.split("/")[:-1]) + "/" + goto goto = f"/gem?gemini={tempurl}" + print(goto) elif prse.scheme != "gemini": extra = "" elif prse.hostname != urlparse(fulladdr).hostname: @@ -105,7 +108,7 @@ def relay(): comment = goto else: comment = " ".join(temp.split(" ")[1:]) - code += f"{comment} {extra}\n" + code += f"

{comment} {extra}

\n" else: code += f"

{i}

\n" if title == "Something went wrong...":