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

[Rackspace|Storage] set put_object to idempotent

This commit is contained in:
geemus 2012-02-14 11:29:48 -06:00
parent ffbb2b06bd
commit a1fe973bdc

View file

@ -15,11 +15,12 @@ module Fog
data = Fog::Storage.parse_data(data)
headers = data[:headers].merge!(options)
request(
:body => data[:body],
:expects => 201,
:headers => headers,
:method => 'PUT',
:path => "#{Fog::Rackspace.escape(container)}/#{Fog::Rackspace.escape(object)}"
:body => data[:body],
:expects => 201,
:idempotent => true,
:headers => headers,
:method => 'PUT',
:path => "#{Fog::Rackspace.escape(container)}/#{Fog::Rackspace.escape(object)}"
)
end