lib/fog/openstack/compute.rb in fog-1.12.0 vs lib/fog/openstack/compute.rb in fog-1.12.1

- old
+ new

@@ -361,10 +361,10 @@ else error end end - unless response.body.empty? + if !response.body.empty? and response.get_header('Content-Type') == 'application/json' response.body = Fog::JSON.decode(response.body) end response end