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 f89e94f commit 268e774Copy full SHA for 268e774
1 file changed
lib/request/basic.py
@@ -95,7 +95,8 @@ def title(self):
95
kb.mergeCookies = not _ or _[0] in ("y", "Y")
96
97
if kb.mergeCookies:
98
- headers[HTTP_HEADER.COOKIE] = re.sub(r"(?i)\b%s=[^%s]+" % (re.escape(cookie.name), conf.cookieDel or DEFAULT_COOKIE_DELIMITER), "%s=%s" % (cookie.name, getUnicode(cookie.value)), headers[HTTP_HEADER.COOKIE])
+ _ = lambda x: re.sub(r"(?i)\b%s=[^%s]+" % (re.escape(cookie.name), conf.cookieDel or DEFAULT_COOKIE_DELIMITER), "%s=%s" % (cookie.name, getUnicode(cookie.value)), x)
99
+ headers[HTTP_HEADER.COOKIE] = _(headers[HTTP_HEADER.COOKIE])
100
101
if PLACE.COOKIE in conf.parameters:
102
conf.parameters[PLACE.COOKIE] = _(conf.parameters[PLACE.COOKIE])
0 commit comments