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

[aws|storage] make head_object idempotent

This commit is contained in:
geemus 2012-02-14 18:58:20 -06:00
parent d9926ea47f
commit 1886bde528

View file

@ -43,12 +43,13 @@ module Fog
headers['If-Unmodified-Since'] = Fog::Time.at(options['If-Unmodified-Since'].to_i).to_date_header if options['If-Modified-Since']
headers.merge!(options)
request({
:expects => 200,
:headers => headers,
:host => "#{bucket_name}.#{@host}",
:method => 'HEAD',
:path => CGI.escape(object_name),
:query => query
:expects => 200,
:headers => headers,
:host => "#{bucket_name}.#{@host}",
:idempotent => true,
:method => 'HEAD',
:path => CGI.escape(object_name),
:query => query
})
end