lib/cli/curl.rb in cf-uaac-3.1.0 vs lib/cli/curl.rb in cf-uaac-3.1.1

- old
+ new

@@ -82,10 +82,10 @@ response.each_capitalized do |key, value| say " #{key}: #{value}" end say "RESPONSE BODY:" - if response['Content-Type'].include?('application/json') + if !response['Content-Type'].nil? && response['Content-Type'].include?('application/json') parsed = JSON.parse(response.body) formatted = JSON.pretty_generate(parsed) say formatted else say response.body