Update test_routes.py

This commit is contained in:
howie6879
2018-01-08 08:38:54 +08:00
parent 7303a06f83
commit 5f329f72ee
2 changed files with 37 additions and 5 deletions

View File

@@ -374,8 +374,7 @@ class Router:
:param method: request method
:return: handler, arguments, keyword arguments
"""
url = unquote(url)
url = host + url
url = unquote(host + url)
# Check against known static routes
route = self.routes_static.get(url)
method_not_supported = MethodNotSupported(