From 677868da32dca82e5b65409b7fb5dfdd71fd51e3 Mon Sep 17 00:00:00 2001
From: swee
Date: Mon, 13 Jan 2025 22:04:59 -0800
Subject: [PATCH] Update server.py
---
server.py | 2 ++
1 file changed, 2 insertions(+)
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'\nInput requiredInput required
The specified Gemini server wants more data:
{i}
'