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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 829f24d8bbd078fc042f4b9ff73909708961aa2fcb5813d30680cf069d1d43d0
4
- data.tar.gz: 52bb4d7e335d9f7bc82c928632e4bd67c2320210a2e63050902a280dc9ee711b
3
+ metadata.gz: 005e6856a12b549480cb2fcf8becd893e041026e9df634fa102fc410ab3527ef
4
+ data.tar.gz: 00722d3ffe0822eb6f434df84db78e9ffb9b53cbd103220546dc611f3763117c
5
5
  SHA512:
6
- metadata.gz: bf83ea792daf620629aa084eef37ff8cc81ffdf3c99f39bb0ae462d9673a82c941aa2341af766cf81359450d1b59338898f7431e14418e46808d87bf001673cc
7
- data.tar.gz: 91b6de1278808c497b08ba273dd2f2de9f41e93b878867ac7cb4aa3bd716fd3a5ec5538722a59a362de0f2c263ab7e32b570546f2d940fa838a262741ad59e95
6
+ metadata.gz: e8c2c8c1ff44c845a9773e79b3564ed7491cbbcbfd6aa20ea8e93a7a4a029f5afe177c53693173b493efe54122324448ee14e34807aa37db77d3699cc7bb75e2
7
+ data.tar.gz: bad8e79d228c37dd3efafcf530ba7188e4759e5aca807c7b693a7102b6a2bc339663bade32d78c80a62e691f8a8378731f864639965554ab78f4f031994f0626
@@ -0,0 +1,5 @@
1
+ # 0.16.1
2
+
3
+ ## Bugfixes
4
+
5
+ * fixed native resolver hanging when dealing with FQDN end names (#145).
@@ -217,15 +217,27 @@ module HTTPX
217
217
  end
218
218
  else
219
219
  address = addresses.first
220
- connection = @queries.delete(address["name"])
221
- return unless connection # probably a retried query for which there's an answer
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
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "session"
2
4
  module HTTPX
3
5
  class Session
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.16.0"
4
+ VERSION = "0.16.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.16.0
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-03 00:00:00.000000000 Z
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