Add skip verify ssl when request.
This commit is contained in:
parent
2ab00c040e
commit
e0e388faa6
|
@ -343,6 +343,7 @@ class Admin::AnnouncementsController < OrbitAdminController
|
||||||
http_req = Net::HTTP.new(uri.host, uri.port)
|
http_req = Net::HTTP.new(uri.host, uri.port)
|
||||||
if remote_url.include?('https')
|
if remote_url.include?('https')
|
||||||
http_req.use_ssl = true
|
http_req.use_ssl = true
|
||||||
|
http_req.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
||||||
end
|
end
|
||||||
response = http_request( http_req , request )
|
response = http_request( http_req , request )
|
||||||
end
|
end
|
||||||
|
@ -451,6 +452,7 @@ class Admin::AnnouncementsController < OrbitAdminController
|
||||||
http_req = Net::HTTP.new(uri.host, uri.port)
|
http_req = Net::HTTP.new(uri.host, uri.port)
|
||||||
if remote_url.include?('https')
|
if remote_url.include?('https')
|
||||||
http_req.use_ssl = true
|
http_req.use_ssl = true
|
||||||
|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
||||||
end
|
end
|
||||||
response = http_request( http_req , request )
|
response = http_request( http_req , request )
|
||||||
end
|
end
|
||||||
|
@ -479,6 +481,7 @@ class Admin::AnnouncementsController < OrbitAdminController
|
||||||
http_req = Net::HTTP.new(uri.host, uri.port)
|
http_req = Net::HTTP.new(uri.host, uri.port)
|
||||||
if remote_url.include?('https')
|
if remote_url.include?('https')
|
||||||
http_req.use_ssl = true
|
http_req.use_ssl = true
|
||||||
|
http_req.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
||||||
end
|
end
|
||||||
response = http_request( http_req , request )
|
response = http_request( http_req , request )
|
||||||
end
|
end
|
||||||
|
@ -509,6 +512,7 @@ class Admin::AnnouncementsController < OrbitAdminController
|
||||||
http_req = Net::HTTP.new(uri.host, uri.port)
|
http_req = Net::HTTP.new(uri.host, uri.port)
|
||||||
if remote_url.include?('https')
|
if remote_url.include?('https')
|
||||||
http_req.use_ssl = true
|
http_req.use_ssl = true
|
||||||
|
http_req.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
||||||
end
|
end
|
||||||
response = http_request( http_req , request )
|
response = http_request( http_req , request )
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue