Skip to content

Commit

Permalink
CookieJar cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kmike committed Sep 21, 2014
1 parent 49645d4 commit 7be3479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapy/http/cookies.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def add_cookie_header(self, request):

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]
Expand Down

0 comments on commit 7be3479

Please sign in to comment.