diff options
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)] |