temporary (?) solution to the trailing slash issue

This commit is contained in:
sose 2020-12-24 21:44:20 +00:00
parent e241faf766
commit 20ed9e4f4d
1 changed files with 4 additions and 0 deletions

View File

@ -217,6 +217,10 @@ class MessageBoard:
print("30", "{}/boards\r\n".format(self.env["GEMINI_URL"]))
return None
if self.env["GEMINI_URL"][-1] == "/":
print("30", self.env["GEMINI_URL"].strip("/"))
return None
if self.request_path == "/register":
self.register_user()
return None