lib/domoscio_rails.rb in domoscio_rails-0.4.16 vs lib/domoscio_rails.rb in domoscio_rails-0.4.17

- old
+ new

@@ -94,10 +94,10 @@ return response if response.is_a? DomoscioRails::ProcessingError begin raise_http_failure(uri, response, params) - if response['Content-Type'] == 'application/zip' + if response['Content-Type'] == 'application/zip' || response['Content-Type'] == 'application/xlsx' data = response else data = DomoscioRails::JSON.load(response.body.nil? ? '' : response.body) end