diff --git a/server.py b/server.py index b5c0704..fcfc9f2 100644 --- a/server.py +++ b/server.py @@ -12,15 +12,15 @@ def root(): - + Gem2Browser

Gem2Browser

-

gemini://


- +

gemini://


+
@@ -30,6 +30,9 @@ def root(): def external(): return send_file("external.png") @app.route("/cross-server.png") +def crosserver(): + return send_file("cross-server.png") +@app.route("/style.css") def crosserver(): return send_file("cross-server.png") @app.route("/gem") @@ -95,9 +98,9 @@ def relay(): tempurl = "/".join(url.split("/")[:-1]) + "/" + goto goto = f"/gem?gemini={tempurl}" elif prse.scheme != "gemini": - extra = "" + extra = "" elif prse.hostname != urlparse(fulladdr).hostname: - extra = "" + extra = "" if temp.split(" ") == 1: comment = goto else: @@ -109,7 +112,7 @@ def relay(): title = "gemini://" + url except: code += traceback.format_exc() - return f'\n{title}{code}' + return f'\n{title}{code}' # Run the Hypercorn ASGI server conf = Config()