lib/braintree/http.rb in braintree-2.6.3 vs lib/braintree/http.rb in braintree-2.7.0

- old
+ new

@@ -46,9 +46,10 @@ Braintree::Xml.hash_to_xml params end def _http_do(http_verb, path, body = nil) connection = Net::HTTP.new(@config.server, @config.port) + connection.read_timeout = 60 if @config.ssl? connection.use_ssl = true connection.verify_mode = OpenSSL::SSL::VERIFY_PEER connection.ca_file = @config.ca_file connection.verify_callback = proc { |preverify_ok, ssl_context| _verify_ssl_certificate(preverify_ok, ssl_context) }