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:
parent
b9909d0686
commit
2c6a053f8d
|
@ -56,7 +56,7 @@ class GUIServerController(ControllerBase):
|
||||||
path = "%s/html/" % PATH
|
path = "%s/html/" % PATH
|
||||||
self.static_app = DirectoryApp(path)
|
self.static_app = DirectoryApp(path)
|
||||||
|
|
||||||
@route('topology', '/{filename:.*}')
|
@route('topology', '/{filename:[^/]*}')
|
||||||
def static_handler(self, req, **kwargs):
|
def static_handler(self, req, **kwargs):
|
||||||
if kwargs['filename']:
|
if kwargs['filename']:
|
||||||
req.path_info = kwargs['filename']
|
req.path_info = kwargs['filename']
|
||||||
|
|
Loading…
Reference in New Issue