httpx 0.20.2 → 0.20.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/release_notes/0_20_3.md +6 -0
- data/lib/httpx/io/ssl.rb +6 -6
- data/lib/httpx/resolver/https.rb +1 -0
- data/lib/httpx/resolver/native.rb +1 -1
- data/lib/httpx/response.rb +1 -1
- data/lib/httpx/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 543163347ad58a18829298d36113f88da710c5b139c14968962cdd88d9d36c86
|
4
|
+
data.tar.gz: 1a460e4e2f079f6b08ede7ad7076039ead2b6fc31cffb590e4c245d38e838dc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bf4ccdbefc71b868b51ff130cb0892791935dade7829ffe09b3401dbba112fd354a8781da8d58015afb254206ac8a5187477ac65bdaf09b996909ef2e42f93c
|
7
|
+
data.tar.gz: a06649e2a51aebe113e3604e739916f164a30aa643eb7e2a5f82871929d2ce1c9bb8b9f234c2ac2ce07f3bd995058e8ba7f1b42e5eaf5cb63fe205b753184b0b
|
@@ -0,0 +1,6 @@
|
|
1
|
+
# 0.20.3
|
2
|
+
|
3
|
+
## Bugfixes
|
4
|
+
|
5
|
+
* DoH resolver wasn't working for non-absolute (the large majority) of domains since v0.19.
|
6
|
+
* Allowing a single IP string to be passed to the resolver option `:nameserver` (just like the `resolv` library does), besides the already supported list of IPs.
|
data/lib/httpx/io/ssl.rb
CHANGED
@@ -145,12 +145,12 @@ module HTTPX
|
|
145
145
|
"#{super}\n\n" \
|
146
146
|
"SSL connection using #{@io.ssl_version} / #{Array(@io.cipher).first}\n" \
|
147
147
|
"ALPN, server accepted to use #{protocol}\n" \
|
148
|
-
"Server certificate:\n" \
|
149
|
-
"
|
150
|
-
"
|
151
|
-
"
|
152
|
-
"
|
153
|
-
"
|
148
|
+
"Server certificate:\n " \
|
149
|
+
"subject: #{server_cert.subject}\n " \
|
150
|
+
"start date: #{server_cert.not_before}\n " \
|
151
|
+
"expire date: #{server_cert.not_after}\n " \
|
152
|
+
"issuer: #{server_cert.issuer}\n " \
|
153
|
+
"SSL certificate verify ok."
|
154
154
|
end
|
155
155
|
end
|
156
156
|
end
|
data/lib/httpx/resolver/https.rb
CHANGED
@@ -45,7 +45,7 @@ module HTTPX
|
|
45
45
|
super
|
46
46
|
@ns_index = 0
|
47
47
|
@resolver_options = DEFAULTS.merge(@options.resolver_options)
|
48
|
-
@nameserver = @resolver_options[:nameserver]
|
48
|
+
@nameserver = Array(@resolver_options[:nameserver]) if @resolver_options[:nameserver]
|
49
49
|
@ndots = @resolver_options[:ndots]
|
50
50
|
@search = Array(@resolver_options[:search]).map { |srch| srch.scan(/[^.]+/) }
|
51
51
|
@_timeouts = Array(@resolver_options[:timeouts])
|
data/lib/httpx/response.rb
CHANGED
data/lib/httpx/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httpx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.20.
|
4
|
+
version: 0.20.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiago Cardoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http-2-next
|
@@ -83,6 +83,7 @@ extra_rdoc_files:
|
|
83
83
|
- doc/release_notes/0_20_0.md
|
84
84
|
- doc/release_notes/0_20_1.md
|
85
85
|
- doc/release_notes/0_20_2.md
|
86
|
+
- doc/release_notes/0_20_3.md
|
86
87
|
- doc/release_notes/0_2_0.md
|
87
88
|
- doc/release_notes/0_2_1.md
|
88
89
|
- doc/release_notes/0_3_0.md
|
@@ -158,6 +159,7 @@ files:
|
|
158
159
|
- doc/release_notes/0_20_0.md
|
159
160
|
- doc/release_notes/0_20_1.md
|
160
161
|
- doc/release_notes/0_20_2.md
|
162
|
+
- doc/release_notes/0_20_3.md
|
161
163
|
- doc/release_notes/0_2_0.md
|
162
164
|
- doc/release_notes/0_2_1.md
|
163
165
|
- doc/release_notes/0_3_0.md
|