mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Fix crash when sticky cookies are read from file.
Cookielib expects strings, not unicode.
This commit is contained in:
parent
0f4ae61e7d
commit
e6288e2d07
@ -142,7 +142,7 @@ class StickyCookieState:
|
||||
for i in f.response.headers["set-cookie"]:
|
||||
# FIXME: We now know that Cookie.py screws up some cookies with
|
||||
# valid RFC 822/1123 datetime specifications for expiry. Sigh.
|
||||
c = Cookie.SimpleCookie(i)
|
||||
c = Cookie.SimpleCookie(str(i))
|
||||
m = c.values()[0]
|
||||
k = self.ckey(m, f)
|
||||
if cookielib.domain_match(f.request.host, k[0]):
|
||||
|
Loading…
Reference in New Issue
Block a user