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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b49337207a605c716ef9a1043660239ced7f5060758148f905be6c1d5546a8bc
4
- data.tar.gz: 732ffb35912e5176827941034b74ce2777d744e828e1ed86351bdd221f010d19
3
+ metadata.gz: 543163347ad58a18829298d36113f88da710c5b139c14968962cdd88d9d36c86
4
+ data.tar.gz: 1a460e4e2f079f6b08ede7ad7076039ead2b6fc31cffb590e4c245d38e838dc5
5
5
  SHA512:
6
- metadata.gz: 5c1f12fa0d1675f8e8c478ea272456f910dc558b7836eaf0bfa6e916d29439e7dd093ffdde4903a43b474559909052df4d26872846e704c393045f10d496a53a
7
- data.tar.gz: 9011bf6d1826ea2a44a3570f9dcbe9dc5bb319303809cf8b44247f9ac2bdb099ccc0895192155960df320dbdad4bebf009a7ec77dc1e37d1e8e27a59077efe5a
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
- " 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."
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
@@ -39,6 +39,7 @@ module HTTPX
39
39
  @uri_addresses = nil
40
40
  @resolver = Resolv::DNS.new
41
41
  @resolver.timeouts = @resolver_options.fetch(:timeouts, Resolver::RESOLVE_TIMEOUT)
42
+ @resolver.lazy_initialize
42
43
  end
43
44
 
44
45
  def <<(connection)
@@ -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])
@@ -56,7 +56,7 @@ module HTTPX
56
56
 
57
57
  # :nocov:
58
58
  def inspect
59
- "#<Response:#{object_id} "\
59
+ "#<Response:#{object_id} " \
60
60
  "HTTP/#{version} " \
61
61
  "@status=#{@status} " \
62
62
  "@headers=#{@headers} " \
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.20.2"
4
+ VERSION = "0.20.3"
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.20.2
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-06-23 00:00:00.000000000 Z
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