summaryrefslogtreecommitdiff
path: root/controller.py
diff options
context:
space:
mode:
Diffstat (limited to 'controller.py')
-rw-r--r--controller.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/controller.py b/controller.py
index e819862..0cb2ea9 100644
--- a/controller.py
+++ b/controller.py
@@ -24,6 +24,7 @@ class Redirect:
redirects[name.strip()] = url.strip()
def GET(self, name):
+ if name[-1] == "/": name = name[:-1]
if name not in self.redirects:
raise web.TempRedirect("/")
else: