httpx 0.23.0 → 0.23.2
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_23_1.md +5 -0
- data/doc/release_notes/0_23_2.md +5 -0
- data/lib/httpx/resolver/native.rb +8 -4
- data/lib/httpx/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1198b505a01534dd942900f5cd82654459fbab18e89e8c4e3291717d36cfa777
|
4
|
+
data.tar.gz: 02c767977043d0d80faa74d1175de23931ab5bb097fd11004df145fd1e3c2216
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e8bfbf580750b9fa04fd116e9a1a2b341ed488771aa10021c496d98412b0d9bac87ee5d4963d48648b8df2f85445060953e43548bb0ffab7a8f126001365aad
|
7
|
+
data.tar.gz: 49297a78674a918c0cd3e10e40748bad72347fd2e4e3df9df43f16b0e179238a7271d64306e2db4eefa2160e38e8ee2f5768c9da2f2f8cebc1c1db97b8fc0821
|
@@ -244,10 +244,14 @@ module HTTPX
|
|
244
244
|
when :no_domain_found
|
245
245
|
# Indicates no such domain was found.
|
246
246
|
hostname, connection = @queries.first
|
247
|
-
reset_hostname(hostname)
|
247
|
+
reset_hostname(hostname, reset_candidates: false)
|
248
248
|
|
249
|
-
@
|
250
|
-
|
249
|
+
unless @queries.value?(connection)
|
250
|
+
@connections.delete(connection)
|
251
|
+
raise NativeResolveError.new(connection, connection.origin.host, "name or service not known")
|
252
|
+
end
|
253
|
+
|
254
|
+
resolve
|
251
255
|
when :message_truncated
|
252
256
|
# TODO: what to do if it's already tcp??
|
253
257
|
return if @socket_type == :tcp
|
@@ -277,7 +281,7 @@ module HTTPX
|
|
277
281
|
def parse_addresses(addresses)
|
278
282
|
if addresses.empty?
|
279
283
|
# no address found, eliminate candidates
|
280
|
-
|
284
|
+
hostname, connection = @queries.first
|
281
285
|
reset_hostname(hostname)
|
282
286
|
@connections.delete(connection)
|
283
287
|
raise NativeResolveError.new(connection, connection.origin.host)
|
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.23.
|
4
|
+
version: 0.23.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiago Cardoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http-2-next
|
@@ -95,6 +95,8 @@ extra_rdoc_files:
|
|
95
95
|
- doc/release_notes/0_22_4.md
|
96
96
|
- doc/release_notes/0_22_5.md
|
97
97
|
- doc/release_notes/0_23_0.md
|
98
|
+
- doc/release_notes/0_23_1.md
|
99
|
+
- doc/release_notes/0_23_2.md
|
98
100
|
- doc/release_notes/0_2_0.md
|
99
101
|
- doc/release_notes/0_2_1.md
|
100
102
|
- doc/release_notes/0_3_0.md
|
@@ -182,6 +184,8 @@ files:
|
|
182
184
|
- doc/release_notes/0_22_4.md
|
183
185
|
- doc/release_notes/0_22_5.md
|
184
186
|
- doc/release_notes/0_23_0.md
|
187
|
+
- doc/release_notes/0_23_1.md
|
188
|
+
- doc/release_notes/0_23_2.md
|
185
189
|
- doc/release_notes/0_2_0.md
|
186
190
|
- doc/release_notes/0_2_1.md
|
187
191
|
- doc/release_notes/0_3_0.md
|