gui_topology: Avoid wildcard URL matching

GUIServerController eats up the entire URL space and sometimes causes
problems. See the following thread in ryu-devel for example:

https://sourceforge.net/p/ryu/mailman/message/36312411/

Signed-off-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
IWAMOTO Toshihiro 2018-07-11 13:51:48 +09:00 committed by FUJITA Tomonori
parent b9909d0686
commit 2c6a053f8d

View File

@ -56,7 +56,7 @@ class GUIServerController(ControllerBase):
path = "%s/html/" % PATH
self.static_app = DirectoryApp(path)
@route('topology', '/{filename:.*}')
@route('topology', '/{filename:[^/]*}')
def static_handler(self, req, **kwargs):
if kwargs['filename']:
req.path_info = kwargs['filename']