httpx 0.16.0 → 0.16.1
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_16_1.md +5 -0
- data/lib/httpx/resolver/native.rb +15 -3
- data/lib/httpx/session2.rb +2 -0
- 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: 005e6856a12b549480cb2fcf8becd893e041026e9df634fa102fc410ab3527ef
|
4
|
+
data.tar.gz: 00722d3ffe0822eb6f434df84db78e9ffb9b53cbd103220546dc611f3763117c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8c2c8c1ff44c845a9773e79b3564ed7491cbbcbfd6aa20ea8e93a7a4a029f5afe177c53693173b493efe54122324448ee14e34807aa37db77d3699cc7bb75e2
|
7
|
+
data.tar.gz: bad8e79d228c37dd3efafcf530ba7188e4759e5aca807c7b693a7102b6a2bc339663bade32d78c80a62e691f8a8378731f864639965554ab78f4f031994f0626
|
@@ -217,15 +217,27 @@ module HTTPX
|
|
217
217
|
end
|
218
218
|
else
|
219
219
|
address = addresses.first
|
220
|
-
|
221
|
-
|
220
|
+
name = address["name"]
|
221
|
+
|
222
|
+
connection = @queries.delete(name)
|
223
|
+
|
224
|
+
unless connection
|
225
|
+
# absolute name
|
226
|
+
name_labels = Resolv::DNS::Name.create(name).to_a
|
227
|
+
name = @queries.keys.first { |hname| name_labels == Resolv::DNS::Name.create(hname).to_a }
|
228
|
+
|
229
|
+
# probably a retried query for which there's an answer
|
230
|
+
return unless name
|
231
|
+
|
232
|
+
address["name"] = name
|
233
|
+
connection = @queries.delete(name)
|
234
|
+
end
|
222
235
|
|
223
236
|
if address.key?("alias") # CNAME
|
224
237
|
if early_resolve(connection, hostname: address["alias"])
|
225
238
|
@connections.delete(connection)
|
226
239
|
else
|
227
240
|
resolve(connection, address["alias"])
|
228
|
-
@queries.delete(address["name"])
|
229
241
|
return
|
230
242
|
end
|
231
243
|
else
|
data/lib/httpx/session2.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.16.
|
4
|
+
version: 0.16.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiago Cardoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http-2-next
|
@@ -74,6 +74,7 @@ extra_rdoc_files:
|
|
74
74
|
- doc/release_notes/0_15_3.md
|
75
75
|
- doc/release_notes/0_15_4.md
|
76
76
|
- doc/release_notes/0_16_0.md
|
77
|
+
- doc/release_notes/0_16_1.md
|
77
78
|
- doc/release_notes/0_1_0.md
|
78
79
|
- doc/release_notes/0_2_0.md
|
79
80
|
- doc/release_notes/0_2_1.md
|
@@ -127,6 +128,7 @@ files:
|
|
127
128
|
- doc/release_notes/0_15_3.md
|
128
129
|
- doc/release_notes/0_15_4.md
|
129
130
|
- doc/release_notes/0_16_0.md
|
131
|
+
- doc/release_notes/0_16_1.md
|
130
132
|
- doc/release_notes/0_1_0.md
|
131
133
|
- doc/release_notes/0_2_0.md
|
132
134
|
- doc/release_notes/0_2_1.md
|