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:
parent
c240aadc85
commit
29e118619e
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue