Skip to content

Commit

Permalink
[Rackspace|Storage] set put_object to idempotent
Browse files Browse the repository at this point in the history
  • Loading branch information
geemus committed Feb 14, 2012
1 parent ffbb2b0 commit a1fe973
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/fog/rackspace/requests/storage/put_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ def put_object(container, object, data, options = {})
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

Expand Down

0 comments on commit a1fe973

Please sign in to comment.