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:
parent
b67c39a182
commit
ed63015e00
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue