diff --git a/server.py b/server.py index 0d7fd7e..12265a5 100644 --- a/server.py +++ b/server.py @@ -65,11 +65,11 @@ def relay(): if i.split(" ")[0][0] == "3": return redirect("/gem?gemini=" + i.split(" ")[1][9:]) elif i.split(" ")[0][0] != "2": - return f'\nSomething went wrong...

Something went wrong...

The specified Gemini server returned a status of: {i}

' + return f'\nSomething went wrong...

Something went wrong...

The specified Gemini server returned a status of: {i}

' else: firstline = False if i.split(" ")[1] != "text/gemini": - return f'\nSomething went wrong...

Something went wrong...

This path returned a file that isn\'t Gemtext, which Gem2Browser doesn\'t support downloading files.

' + return f'\nSomething went wrong...

Something went wrong...

This path returned a file that isn\'t Gemtext, which Gem2Browser doesn\'t support downloading files.

' else: if i[0:2] == "# ": if title == "Something went wrong...": @@ -113,6 +113,8 @@ def relay(): else: comment = " ".join(temp.split(" ")[1:]) code += f"

{comment} {extra}

\n" + elif i[0:2] == ">": + code += f"

{i}

\n" else: code += f"

{i}

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