Merge pull request #284 from r0fls/remove-defualt-type

remove default from host in _get method
This commit is contained in:
Eli Uriegas 2017-01-11 10:01:11 -06:00 committed by GitHub
commit a02eb8e7cb

View File

@ -158,7 +158,7 @@ class Router:
request.headers.get("Host", '')) request.headers.get("Host", ''))
@lru_cache(maxsize=Config.ROUTER_CACHE_SIZE) @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 Gets a request handler based on the URL of the request, or raises an
error. Internal method for caching. error. Internal method for caching.