# File lib/oauth/consumer.rb, line 230 def create_http(_url = nil) if _url.nil? || _url[0] =~ /^\// our_uri = URI.parse(site) else our_uri = URI.parse(_url) end http_object = Net::HTTP.new(our_uri.host, our_uri.port) http_object.use_ssl = (our_uri.scheme == 'https') if CA_FILE http_object.ca_file = CA_FILE http_object.verify_mode = OpenSSL::SSL::VERIFY_PEER http_object.verify_depth = 5 else http_object.verify_mode = OpenSSL::SSL::VERIFY_NONE end http_object end