diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-05-09 16:43:46 -0500 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-05-11 12:20:21 -0500 |
commit | e2ee48a0ee8e6f6426686f8f7b06570cea20b236 (patch) | |
tree | 867f7ec98a41d368382e207a70e23999910fce66 /netlib/http | |
parent | 08002282e84394cb86508c51f2d7adfd1ece6da4 (diff) | |
download | mitmproxy-e2ee48a0ee8e6f6426686f8f7b06570cea20b236.tar.gz mitmproxy-e2ee48a0ee8e6f6426686f8f7b06570cea20b236.tar.bz2 mitmproxy-e2ee48a0ee8e6f6426686f8f7b06570cea20b236.zip |
replace SimpleCookie with our own parser lib
Diffstat (limited to 'netlib/http')
-rw-r--r-- | netlib/http/cookies.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netlib/http/cookies.py b/netlib/http/cookies.py index 2d5c18ca..4451f1da 100644 --- a/netlib/http/cookies.py +++ b/netlib/http/cookies.py @@ -209,7 +209,7 @@ def refresh_set_cookie_header(c, delta): raise ValueError("Invalid Cookie") if "expires" in attrs: - e = parsedate_tz(attrs["expires"][0]) + e = parsedate_tz(attrs["expires"][-1]) if e: f = mktime_tz(e) + delta attrs["expires"] = [formatdate(f)] |