temporary (?) solution to the trailing slash issue
This commit is contained in:
parent
e241faf766
commit
20ed9e4f4d
4
motm.py
4
motm.py
|
@ -217,6 +217,10 @@ class MessageBoard:
|
||||||
print("30", "{}/boards\r\n".format(self.env["GEMINI_URL"]))
|
print("30", "{}/boards\r\n".format(self.env["GEMINI_URL"]))
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
if self.env["GEMINI_URL"][-1] == "/":
|
||||||
|
print("30", self.env["GEMINI_URL"].strip("/"))
|
||||||
|
return None
|
||||||
|
|
||||||
if self.request_path == "/register":
|
if self.request_path == "/register":
|
||||||
self.register_user()
|
self.register_user()
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in New Issue