1
0
Fork 0
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:
geemus 2010-05-14 12:01:38 -07:00
parent 393dea3acd
commit 2b203a5d7b

View file

@ -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}"