mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
Merge branch 'issue-113'
This commit is contained in:
commit
d9ffa846a6
5
doc/release_notes/0_11_2.md
Normal file
5
doc/release_notes/0_11_2.md
Normal 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.
|
@ -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)
|
||||
|
@ -1,5 +1,5 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module HTTPX
|
||||
VERSION = "0.11.1"
|
||||
VERSION = "0.11.2"
|
||||
end
|
||||
|
1
spec.sh
1
spec.sh
@ -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
|
||||
|
||||
#
|
||||
|
@ -1,4 +1,7 @@
|
||||
-
|
||||
-
|
||||
name: "0.11.2"
|
||||
path: "0_11_2_md.html"
|
||||
-
|
||||
name: "0.11.1"
|
||||
path: "0_11_1_md.html"
|
||||
|
Loading…
x
Reference in New Issue
Block a user