Skip to content

Commit 8a85e43

Browse files
committed
Fix alignment
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 997690d commit 8a85e43

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lib/net/http/persistent.rb

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@
7373
# #verify_callback :: For server certificate verification
7474
# #verify_depth :: Depth of certificate verification
7575
# #verify_mode :: How connections should be verified
76+
# #verify_hostname :: Use hostname verification for server certificate
77+
# during the handshake
7678
#
7779
# == Proxies
7880
#
@@ -448,16 +450,17 @@ def self.detect_idle_timeout uri, max = 10
448450
attr_reader :verify_mode
449451

450452
##
451-
# HTTPS verify_hostname. Defaults to false.
453+
# HTTPS verify_hostname.
452454
#
453455
# If a client sets this to true and enables SNI with SSLSocket#hostname=,
454456
# the hostname verification on the server certificate is performed
455457
# automatically during the handshake using
456458
# OpenSSL::SSL.verify_certificate_identity().
457459
#
458-
# @See https://github.com/ruby/openssl/pull/60
460+
# You can set +verify_hostname+ as true to use hostname verification
461+
# during the handshake.
459462
#
460-
# You can use +verify_hostname+ to override any default values.
463+
# NOTE: This may work with Ruby > 2.8.
461464

462465
attr_reader :verify_hostname
463466

@@ -978,8 +981,8 @@ def ssl connection
978981
connection.min_version = @min_version if @min_version
979982
connection.max_version = @max_version if @max_version
980983

981-
connection.verify_depth = @verify_depth
982-
connection.verify_mode = @verify_mode
984+
connection.verify_depth = @verify_depth
985+
connection.verify_mode = @verify_mode
983986
connection.verify_hostname = @verify_hostname if
984987
@verify_hostname && connection.respond_to?(:verify_hostname=)
985988

0 commit comments

Comments
 (0)