fog 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/fog.gemspec +1 -1
  3. data/lib/fog/aws/s3.rb +2 -2
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.10
1
+ 0.0.11
data/fog.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fog}
8
- s.version = "0.0.10"
8
+ s.version = "0.0.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Wesley Beary"]
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}".downcase
133
+ string_to_sign << "#{canonical_resource}"
134
134
 
135
135
  hmac = @hmac.update(string_to_sign)
136
136
  signature = Base64.encode64(hmac.digest).chomp!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wesley Beary