httpx 0.23.0 → 0.23.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71f84ab5eb126b7c22ceeabf6ef36935e678376ad79e3585a1c8af0cdadcb36c
4
- data.tar.gz: 98169826112b92768e6592ec9dcc5a0ebf0dcc34f063a4480d17b4ee4bc3f345
3
+ metadata.gz: 4b2b08112684f9bd8729c77dba080f3c6a6ae1f49f9edf64064e8f5511814ec9
4
+ data.tar.gz: 27c4c7e04269ef2c70c7a1b47d468344ffe40bd95ecaddea4fae383e23e7828b
5
5
  SHA512:
6
- metadata.gz: 3ebd7512c81d95e87284d5a622d473df66a618597b502eccb17cb7ec738364f46d2dec85b1b63940b6182356ccd11caaef0867f56f671320d3a9f9c04e6ad47b
7
- data.tar.gz: e98bb305329b8982414eb95d2455ef436703ba328175ddd383170c68463aa7d1b83721ac9ffd74fdd91190b0ce055668eac8c67c23648ac7493dfdc01d96e3a6
6
+ metadata.gz: a5e434e9ff70a0c1c70fc35d5c5a9a854c4ac4d205a1116a92594c59dd7a70abe9985623c7d7c96348a15b73a51cf08244f6e8ae0ffb9a61760249b5213e6d8f
7
+ data.tar.gz: 3eb75f06e34ff49cf998eeccb70a316acfa4962e6663fd6c59e03cbfdb1200ce5f6580fed0baac2e034b2106cba163bb0fd6454cf008a58bac5bcc6babb744af
@@ -0,0 +1,5 @@
1
+ # 0.23.1
2
+
3
+ ## Bugfixes
4
+
5
+ * fixed regression causing dns candidate names not being tried after first one fails.
@@ -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
- @connections.delete(connection)
250
- raise NativeResolveError.new(connection, connection.origin.host, "name or service not known (#{hostname})")
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
data/lib/httpx/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HTTPX
4
- VERSION = "0.23.0"
4
+ VERSION = "0.23.1"
5
5
  end
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.0
4
+ version: 0.23.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: 2023-04-29 00:00:00.000000000 Z
11
+ date: 2023-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http-2-next
@@ -95,6 +95,7 @@ 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
98
99
  - doc/release_notes/0_2_0.md
99
100
  - doc/release_notes/0_2_1.md
100
101
  - doc/release_notes/0_3_0.md
@@ -182,6 +183,7 @@ files:
182
183
  - doc/release_notes/0_22_4.md
183
184
  - doc/release_notes/0_22_5.md
184
185
  - doc/release_notes/0_23_0.md
186
+ - doc/release_notes/0_23_1.md
185
187
  - doc/release_notes/0_2_0.md
186
188
  - doc/release_notes/0_2_1.md
187
189
  - doc/release_notes/0_3_0.md