Fix bug for ".local" host name

It's necessary to put new list member in squared brackets (i.e. create new list) to merge lists properly, otherwise we will get result list with character elements instead of string element.
This commit is contained in:
andrewshir 2014-09-06 18:23:27 +06:00
parent acb0a61cf1
commit dfca7b3c80
1 changed files with 1 additions and 1 deletions

View File

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