From d3613246b58ac69cb83c97b788b27b8fc34b21a1 Mon Sep 17 00:00:00 2001
From: swee
Date: Tue, 14 Jan 2025 19:39:42 -0800
Subject: [PATCH] Update server.py
---
server.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/server.py b/server.py
index b9ff48e..7f230ce 100644
--- a/server.py
+++ b/server.py
@@ -121,6 +121,8 @@ def relay():
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}
'
+ elif i.split(" ")[0][0] == "6":
+ return f'\nCertificate requestedCertificate requested
The specified Gemini server wants a client certificate, or the certificate is invalid.
{i}
You can load a certificate in home page.
'
elif i.split(" ")[0][0] != "2":
return f'\nSomething went wrong...Something went wrong...
The specified Gemini server returned a status of: {i}
'
else: