From d03aa93b20d26d2432df4868532dcf7db52e0ab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=C3=B1or=20Rolando?= Date: Fri, 13 Dec 2013 21:21:24 +0100 Subject: [PATCH] No specific ssl verification needed. --- app/models/repost.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/repost.rb b/app/models/repost.rb index 2c72829..f4474eb 100644 --- a/app/models/repost.rb +++ b/app/models/repost.rb @@ -38,6 +38,7 @@ class Repost < ActiveRecord::Base uri = URI(uri_string) http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true + http.verify_mode = OpenSSL::SSL::VERIFY_NONE headers = { 'Authorization' => "Bearer " + access_token } @@ -50,6 +51,7 @@ class Repost < ActiveRecord::Base uri = URI(uri_string) http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true + http.verify_mode = OpenSSL::SSL::VERIFY_NONE headers = { 'Authorization' => "Bearer " + access_token }