remove default host attribute in router
This commit is contained in:
parent
88bf78213f
commit
0eedde445c
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user