From 326281677805d72a1f0cbca7ce7359fd0ae82bfe Mon Sep 17 00:00:00 2001
From: swee The specified Gemini server wants more data:
')
+ resp.set_cookie('certname',thisname)
+ return resp
random_name = str(uuid.uuid4())
cert.save(homefolder + "/certs/" + random_name + "-chain.pem")
privkey.save(homefolder + "/certs/" + random_name + "-privkey.pem")
- resp = make_response('Success!
')
+ resp = make_response('Success!
')
resp.set_cookie('certname',random_name)
return resp
else:
@@ -158,11 +164,11 @@ def relay():
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 required
{i}
The specified Gemini server wants more data:
{i}' elif i.split(" ")[0][0] == "6": - return f'\n
The specified Gemini server wants a client certificate, or the certificate is invalid.
{i}
You can load a certificate in home page.
' + return f'\nThe 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'\nThe specified Gemini server returned a status of: {i}
' + return f'\nThe specified Gemini server returned a status of: {i}
' else: firstline = False if i.split(" ")[1].split(";")[0] != "text/gemini": @@ -246,7 +252,7 @@ def relay(): title = "gemini://" + url except: code += "" + traceback.format_exc() + "" - return f'\n