Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e61113

Browse files
committed
Fixes #2747
1 parent 5f25a77 commit 4e61113

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/request/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def title(self):
9292
if conf.cj:
9393
if HTTP_HEADER.COOKIE in headers:
9494
for cookie in conf.cj:
95-
if cookie.domain_specified and not conf.hostname.endswith(cookie.domain):
95+
if cookie.domain_specified and not (conf.hostname or "").endswith(cookie.domain):
9696
continue
9797

9898
if ("%s=" % getUnicode(cookie.name)) in getUnicode(headers[HTTP_HEADER.COOKIE]):

0 commit comments

Comments
 (0)