mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[storage|aws] fix url to check for query
This commit is contained in:
parent
99eb02443a
commit
73b30b1261
1 changed files with 4 additions and 2 deletions
|
@ -66,9 +66,11 @@ module Fog
|
|||
params[:headers]['Date'] = expires.to_i
|
||||
params[:path] = Fog::AWS.escape(params[:path]).gsub('%2F', '/')
|
||||
query = []
|
||||
if params[:query]
|
||||
for key, value in params[:query]
|
||||
query << "#{key}=#{Fog::AWS.escape(value)}"
|
||||
end
|
||||
end
|
||||
query << "AWSAccessKeyId=#{@aws_access_key_id}"
|
||||
query << "Signature=#{Fog::AWS.escape(signature(params))}"
|
||||
query << "Expires=#{params[:headers]['Date']}"
|
||||
|
|
Loading…
Add table
Reference in a new issue