From e2ee48a0ee8e6f6426686f8f7b06570cea20b236 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Mon, 9 May 2016 16:43:46 -0500 Subject: replace SimpleCookie with our own parser lib --- netlib/http/cookies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'netlib') 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)] -- cgit v1.2.3