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

Set proper content type and clear operations after request

This commit is contained in:
Matt Darby 2015-04-25 15:40:07 -04:00
parent b67c39a182
commit ed63015e00

View file

@ -3,8 +3,11 @@ class Fog::Rackspace::CDNV2::Real
request(
:expects => [201, 202],
:method => 'PATCH',
:headers => {"Content-Type" => "application/json-patch+json"},
:body => Fog::JSON.encode(service.operations),
:path => "services/#{service.id}"
)
service.operations = []
end
end