mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[s3] fix signing bug when query is empty
This commit is contained in:
parent
42f13f08c7
commit
754e46d8a8
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]
|
||||
if params[:query] && !params[:query].empty?
|
||||
canonical_resource << "?#{params[:query]}"
|
||||
end
|
||||
string_to_sign << "#{canonical_resource}"
|
||||
|
|
Loading…
Add table
Reference in a new issue