Merge branch 'issue-113'

This commit is contained in:
HoneyryderChuck 2021-02-12 12:52:20 +00:00
commit d9ffa846a6
5 changed files with 11 additions and 2 deletions

View File

@ -0,0 +1,5 @@
# 0.11.2
## Bugfixes
The `:cookies` plugin wasn't able to parse `Expires` values, as it was using `Time.httpdate` to parse timestamps, which is RFC 2616-compliant, whereas cookies datetime values need to be RFC 6265-compliant.

View File

@ -107,7 +107,7 @@ module HTTPX
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)

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true
module HTTPX
VERSION = "0.11.1"
VERSION = "0.11.2"
end

View File

@ -16,6 +16,7 @@ else
extra="-f docker-compose-gitlab.yml -f docker-compose-${RUBY}-${VERSION}.yml"
fi
free -m
docker-compose -f docker-compose.yml ${extra} -p ci run httpx
#

View File

@ -1,4 +1,7 @@
-
-
name: "0.11.2"
path: "0_11_2_md.html"
-
name: "0.11.1"
path: "0_11_1_md.html"