Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Revert "Included VERIFY_NONE in https requests"

This reverts commit 348f34b.
  • Loading branch information...
commit 88cd63488f3eeec46f92d0d8b30b2d0c4a0671d2 1 parent 348f34b
Juan authored
5 lib/tropo-provisioning/tropo_client.rb
@@ -161,10 +161,7 @@ def http
161 161 end
162 162
163 163 http = base.new(uri.host, uri.port)
164   - if uri.scheme == 'https'
165   - http.use_ssl = true
166   - http.verify_mode = OpenSSL::SSL::VERIFY_NONE
167   - end
  164 + http.use_ssl = true if uri.scheme == 'https'
168 165 http
169 166 )
170 167 end
2  lib/tropo-provisioning/tropo_provisioning.rb
@@ -32,7 +32,7 @@ class TropoProvisioning
32 32 #
33 33 # TropoProvisioning object
34 34 def initialize(username, password, params={})
35   - base_uri = params[:base_uri] || "https://api.tropo.com/v1/"
  35 + base_uri = params[:base_uri] || "http://api.tropo.com/v1/"
36 36 proxy = params[:proxy] || nil
37 37 @tropo_client = TropoClient.new(username, password, base_uri, { 'Content-Type' => 'application/json' }, proxy)
38 38 user(username)

0 comments on commit 88cd634

Please sign in to comment.
Something went wrong with that request. Please try again.