From 8c2cd7e44ee4cf37a863e20db684e9e8925184c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Fri, 30 Aug 2019 16:41:59 +0200 Subject: [PATCH] Ignore trailing slash in controller route --- controller/opt/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controller/opt/server.py b/controller/opt/server.py index 712c1df..6a1265e 100644 --- a/controller/opt/server.py +++ b/controller/opt/server.py @@ -26,8 +26,9 @@ if __name__ == '__main__': event_handler_type=FSMAwareEventHandler ) + route = os.environ['SECRET'].rstrip('/') application = Application([( - f'/{os.environ["SECRET"]}', + f'/{route}/?', ControllerPostHandler, {'controller': controller_eh} )])