lib/dato/api_client.rb in dato-0.6.11 vs lib/dato/api_client.rb in dato-0.6.12

- old
+ new

@@ -56,10 +56,14 @@ end end def request(*args) response = connection.send(*args) - response.body.with_indifferent_access + if response.body.is_a?(Hash) + response.body.with_indifferent_access + else + nil + end rescue Faraday::SSLError => e raise e if ENV['SSL_CERT_FILE'] == Cacert.pem Cacert.set_in_env request(*args)