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:
parent
d9926ea47f
commit
1886bde528
1 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue