lib/quick_travel/adapter.rb in quicktravel_client-2.2.2 vs lib/quick_travel/adapter.rb in quicktravel_client-2.3.0

- old
+ new

@@ -270,10 +270,10 @@ raise ConnectionError.new('Socket error') rescue Timeout::Error raise ConnectionError.new('Timeout error') end - if expect && expect == :json && !response.is_a?(Hash) + if expect && expect == :json && !response.parsed_response.is_a?(Hash) fail AdapterError, <<-FAIL Request expected to be json but failed. Debug information below: http_method: #{http_method.inspect} path: #{path.inspect} http_params: #{http_params.inspect}