From 20ed9e4f4d136080dca938d50277e470a218a3ab Mon Sep 17 00:00:00 2001 From: sose Date: Thu, 24 Dec 2020 21:44:20 +0000 Subject: [PATCH] temporary (?) solution to the trailing slash issue --- motm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/motm.py b/motm.py index 519f572..9157718 100644 --- a/motm.py +++ b/motm.py @@ -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