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 }