1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[bluebox|blb] account for text/plain endpoint

This commit is contained in:
Josh Yotty 2013-03-04 18:53:19 -08:00
parent c240aadc85
commit 29e118619e
2 changed files with 3 additions and 2 deletions

View file

@ -73,7 +73,7 @@ module Fog
error
end
end
unless response.body.empty?
unless response.body.empty? || params[:headers]['Accept'] == 'text/plain'
response.body = Fog::JSON.decode(response.body)
end
response

View file

@ -15,7 +15,8 @@ module Fog
request(
:expects => 200,
:method => 'DELETE',
:path => "/api/lb_backends/#{lb_backend_id}/lb_machines/#{lb_machine_id}"
:path => "/api/lb_backends/#{lb_backend_id}/lb_machines/#{lb_machine_id}",
:headers => {"Accept" => "text/plain"},
)
end
end