mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[s3] small fixes related to versioning
This commit is contained in:
parent
9aea1feb8b
commit
b162b21cc4
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ module Fog
|
|||
unless bucket_name
|
||||
raise ArgumentError.new('bucket_name is required')
|
||||
end
|
||||
query = ''
|
||||
query = 'versions&'
|
||||
for key, value in options
|
||||
query << "#{key}=#{CGI.escape(value.to_s).gsub(/\+/, '%20')}&"
|
||||
end
|
||||
|
|
|
@ -208,7 +208,7 @@ DATA
|
|||
canonical_resource << "#{CGI.escape(subdomain).downcase}/"
|
||||
end
|
||||
canonical_resource << "#{params[:path]}"
|
||||
if ['acl', 'location', 'logging', 'requestPayment', 'torrent', 'versioning'].include?(params[:query])
|
||||
if ['acl', 'location', 'logging', 'requestPayment', 'torrent', 'versions', 'versioning'].include?(params[:query])
|
||||
canonical_resource << "?#{params[:query]}"
|
||||
end
|
||||
string_to_sign << "#{canonical_resource}"
|
||||
|
|
Loading…
Reference in a new issue