CookieJar cleanup

This commit is contained in:
Mikhail Korobov 2014-09-21 06:37:32 +06:00
parent 49645d4bf9
commit 7be3479c20
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class CookieJar(object):
if not IPV4_RE.search(req_host):
hosts = potential_domain_matches(req_host)
if req_host.find(".") == -1:
if '.' not in req_host:
hosts += [req_host + ".local"]
else:
hosts = [req_host]