Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7edd7ee commit ed5599fCopy full SHA for ed5599f
1 file changed
lib/request/basic.py
@@ -58,8 +58,13 @@ def forgeHeaders(items=None):
58
if conf.cj:
59
if HTTP_HEADER.COOKIE in headers:
60
for cookie in conf.cj:
61
+ if cookie.domain_specified and not conf.hostname.endswith(cookie.domain):
62
+ continue
63
+
64
if ("%s=" % cookie.name) in headers[HTTP_HEADER.COOKIE]:
- if kb.mergeCookies is None:
65
+ if conf.loadCookies:
66
+ conf.httpHeaders = filter(None, ((item if item[0] != HTTP_HEADER.COOKIE else None) for item in conf.httpHeaders))
67
+ elif kb.mergeCookies is None:
68
message = "you provided a HTTP %s header value. " % HTTP_HEADER.COOKIE
69
message += "The target URL provided its own cookies within "
70
message += "the HTTP %s header which intersect with yours. " % HTTP_HEADER.SET_COOKIE
0 commit comments