Merge pull request #541 from r0fls/speedup

remove default host attribute in router
This commit is contained in:
Raphael Deem 2017-03-11 16:07:05 -08:00 committed by GitHub
commit 414020e75b

View File

@ -137,9 +137,6 @@ class Router:
for host_ in host: for host_ in host:
self.add(uri, methods, handler, host_) self.add(uri, methods, handler, host_)
return return
else:
# default host
self.hosts.add('*')
# Dict for faster lookups of if method allowed # Dict for faster lookups of if method allowed
if methods: if methods: