From 055430d4b848a8a7e60947e49a2170e58af158bd Mon Sep 17 00:00:00 2001 From: Raphael Deem Date: Tue, 10 Jan 2017 16:01:21 -0800 Subject: [PATCH] remove default from host in _get method --- sanic/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/router.py b/sanic/router.py index a1f47230..9ab01b1c 100644 --- a/sanic/router.py +++ b/sanic/router.py @@ -158,7 +158,7 @@ class Router: request.headers.get("Host", '')) @lru_cache(maxsize=Config.ROUTER_CACHE_SIZE) - def _get(self, url, method, host=None): + def _get(self, url, method, host): """ Gets a request handler based on the URL of the request, or raises an error. Internal method for caching.