This commit is contained in:
Miroslav Stampar 2015-12-15 11:29:37 +01:00
parent b269e8418f
commit d7d786d3b5

View File

@ -456,6 +456,9 @@ class Connect(object):
for cookie in conf.cj:
if cookie.value is None:
cookie.value = ""
else:
for char in (r"\r", r"\n"):
cookie.value = re.sub(r"(%s)([^ \t])" % char, r"\g<1>\t\g<2>", cookie.value)
conn = urllib2.urlopen(req)