lib/httpx/plugins/cookies/set_cookie_parser.rb in httpx-0.11.1 vs lib/httpx/plugins/cookies/set_cookie_parser.rb in httpx-0.11.2
- old
+ new
@@ -105,10 +105,10 @@
aname.downcase!
case aname
when "expires"
# RFC 6265 5.2.1
- (avalue &&= Time.httpdate(avalue)) || next
+ (avalue &&= Time.parse(avalue)) || next
when "max-age"
# RFC 6265 5.2.2
next unless /\A-?\d+\z/.match?(avalue)
avalue = Integer(avalue)