mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[s3] fix s3 signing with query params, accidently made it too lax while working on versioning, etc
This commit is contained in:
parent
393dea3acd
commit
2b203a5d7b
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ DATA
|
|||
canonical_resource << "#{CGI.escape(subdomain).downcase}/"
|
||||
end
|
||||
canonical_resource << "#{params[:path]}"
|
||||
if params[:query] && !params[:query].empty?
|
||||
if ['acl', 'location', 'logging', 'requestPayment', 'torrent', 'versioning'].include?(params[:query])
|
||||
canonical_resource << "?#{params[:query]}"
|
||||
end
|
||||
string_to_sign << "#{canonical_resource}"
|
||||
|
|
Loading…
Reference in a new issue