We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bcc23e2 + 99b0d4e commit 5d352d2Copy full SHA for 5d352d2
lib/ruby_http_client.rb
@@ -181,7 +181,7 @@ def add_ssl(http)
181
protocol = host.split(':')[0]
182
if protocol == 'https'
183
http.use_ssl = true
184
- http.verify_mode = OpenSSL::SSL::VERIFY_NONE
+ http.verify_mode = OpenSSL::SSL::VERIFY_PEER
185
end
186
http
187
test/test_ruby_http_client.rb
@@ -100,7 +100,7 @@ def add_ssl
100
http = Net::HTTP.new(uri.host, uri.port)
101
http = @client.add_ssl(http)
102
assert_equal(http.use_ssl, true)
103
- assert_equal(http.verify_mode, OpenSSL::SSL::VERIFY_NONE)
+ assert_equal(http.verify_mode, OpenSSL::SSL::VERIFY_PEER)
104
105
106
def test__
0 commit comments