diff --git a/app/lib/siade/api.rb b/app/lib/siade/api.rb index e884e4711..93837511e 100644 --- a/app/lib/siade/api.rb +++ b/app/lib/siade/api.rb @@ -28,13 +28,11 @@ class SIADE::API end def self.call(resource_name, siret_or_siren, procedure_id) + url = url(resource_name, siret_or_siren) params = params(siret_or_siren, procedure_id) verify_ssl_mode = OpenSSL::SSL::VERIFY_NONE - RestClient::Resource.new( - url(resource_name, siret_or_siren), - verify_ssl: verify_ssl_mode - ).get(params: params) + RestClient::Resource.new(url, verify_ssl: verify_ssl_mode).get(params: params) end def self.url(resource_name, siret_or_siren)