Skip to content
Browse files

Revert "Included VERIFY_NONE in https requests"

This reverts commit 348f34b.
  • Loading branch information...
1 parent 348f34b commit 88cd63488f3eeec46f92d0d8b30b2d0c4a0671d2 @juandebravo committed Sep 28, 2011
Showing with 2 additions and 5 deletions.
  1. +1 −4 lib/tropo-provisioning/tropo_client.rb
  2. +1 −1 lib/tropo-provisioning/tropo_provisioning.rb
View
5 lib/tropo-provisioning/tropo_client.rb
@@ -161,10 +161,7 @@ def http
end
http = base.new(uri.host, uri.port)
- if uri.scheme == 'https'
- http.use_ssl = true
- http.verify_mode = OpenSSL::SSL::VERIFY_NONE
- end
+ http.use_ssl = true if uri.scheme == 'https'
http
)
end
View
2 lib/tropo-provisioning/tropo_provisioning.rb
@@ -32,7 +32,7 @@ class TropoProvisioning
#
# TropoProvisioning object
def initialize(username, password, params={})
- base_uri = params[:base_uri] || "https://api.tropo.com/v1/"
+ base_uri = params[:base_uri] || "http://api.tropo.com/v1/"
proxy = params[:proxy] || nil
@tropo_client = TropoClient.new(username, password, base_uri, { 'Content-Type' => 'application/json' }, proxy)
user(username)

0 comments on commit 88cd634

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