No specific ssl verification needed.
This commit is contained in:
parent
50b69b7e68
commit
d03aa93b20
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue