Skip to content

Commit 38f80c5

Browse files
committed
Delete net/http client implement for now
Signed-off-by: Yuta Iwama <ganmacs@gmail.com>
1 parent 0f51575 commit 38f80c5

1 file changed

Lines changed: 0 additions & 33 deletions

File tree

test/plugin_helper/test_http_server_helper.rb

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -142,39 +142,6 @@ def start_https_request(addr, port, verify: true, cert_path: nil, selfsigned: tr
142142
end
143143
end
144144

145-
# def start_https_request(addr, port, verify: true, cert_path: nil, selfsigned: true)
146-
# https = Net::HTTP.new(addr, port)
147-
# https.use_ssl = true
148-
149-
# if verify
150-
# cert_store = OpenSSL::X509::Store.new
151-
# cert_store.set_default_paths
152-
# if selfsigned && OpenSSL::X509.const_defined?('V_FLAG_CHECK_SS_SIGNATURE')
153-
# cert_store.flags = OpenSSL::X509::V_FLAG_CHECK_SS_SIGNATURE
154-
# end
155-
156-
# if cert_path
157-
# cert_store.add_file(cert_path)
158-
# end
159-
160-
# https.cert_store = cert_store
161-
162-
# # https.verify_hostname = false
163-
164-
# https.verify_mode = OpenSSL::SSL::VERIFY_PEER
165-
# else
166-
# https.verify_mode = OpenSSL::SSL::VERIFY_NONE
167-
# end
168-
169-
# # if !hostname && context.respond_to?(:verify_hostname=)
170-
# # context.verify_hostname = false # In test code, using hostname to be connected is very difficult
171-
# # end
172-
173-
# https.start do
174-
# yield(https)
175-
# end
176-
# end
177-
178145
sub_test_case 'Create a HTTP server' do
179146
test 'monunt given path' do
180147
on_driver do |driver|

0 commit comments

Comments
 (0)