|
|
@ -178,6 +178,8 @@ class EcloudController < ApplicationController
|
|
|
|
http.use_ssl = url.start_with?('https')
|
|
|
|
http.use_ssl = url.start_with?('https')
|
|
|
|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
|
|
|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
|
|
|
request = Net::HTTP::Post.new(uri.request_uri)
|
|
|
|
request = Net::HTTP::Post.new(uri.request_uri)
|
|
|
|
|
|
|
|
request['Content-Type'] = 'application/json'
|
|
|
|
|
|
|
|
request['Accept'] = 'application/json'
|
|
|
|
response = http.request(request)
|
|
|
|
response = http.request(request)
|
|
|
|
|
|
|
|
|
|
|
|
response.body
|
|
|
|
response.body
|
|
|
|