fog 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/fog.gemspec +1 -1
- data/lib/fog/aws/s3.rb +2 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.11
|
data/fog.gemspec
CHANGED
data/lib/fog/aws/s3.rb
CHANGED
@@ -124,13 +124,13 @@ DATA
|
|
124
124
|
canonical_resource = "/"
|
125
125
|
subdomain = params[:host].split(".#{@host}").first
|
126
126
|
unless subdomain == @host
|
127
|
-
canonical_resource << "#{subdomain}/"
|
127
|
+
canonical_resource << "#{CGI.escape(subdomain).downcase}/"
|
128
128
|
end
|
129
129
|
canonical_resource << "#{params[:path]}"
|
130
130
|
if ['acl', 'location', 'logging', 'requestPayment', 'torrent'].include?(params[:query])
|
131
131
|
canonical_resource << "?#{params[:query]}"
|
132
132
|
end
|
133
|
-
string_to_sign << "#{canonical_resource}"
|
133
|
+
string_to_sign << "#{canonical_resource}"
|
134
134
|
|
135
135
|
hmac = @hmac.update(string_to_sign)
|
136
136
|
signature = Base64.encode64(hmac.digest).chomp!
|