diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-07-24 16:08:27 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-07-24 16:08:27 +1200 |
commit | e6288e2d0751502eee1a44723a36230c12b821f3 (patch) | |
tree | 6a2d54adcb438e8de597626c2ca0653a577ad64b /libmproxy/flow.py | |
parent | 0f4ae61e7d7baf4f04bc9a1d0ffb429e3ec97837 (diff) | |
download | mitmproxy-e6288e2d0751502eee1a44723a36230c12b821f3.tar.gz mitmproxy-e6288e2d0751502eee1a44723a36230c12b821f3.tar.bz2 mitmproxy-e6288e2d0751502eee1a44723a36230c12b821f3.zip |
Fix crash when sticky cookies are read from file.
Cookielib expects strings, not unicode.
Diffstat (limited to 'libmproxy/flow.py')
-rw-r--r-- | libmproxy/flow.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/flow.py b/libmproxy/flow.py index d174b41f..3078c4e0 100644 --- a/libmproxy/flow.py +++ b/libmproxy/flow.py @@ -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]): |