mwilliams-right_aws 1.10.1 → 1.10.2

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 (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/s3/right_s3_interface.rb +1 -1
  3. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.10.1
1
+ 1.10.2
@@ -197,7 +197,7 @@ module RightAws
197
197
  unless headers[:location].blank?
198
198
  data = "<CreateBucketConfiguration><LocationConstraint>#{headers[:location].to_s.upcase}</LocationConstraint></CreateBucketConfiguration>"
199
199
  end
200
- req_hash = generate_rest_request('PUT', headers.merge(:url=>bucket, :data => data))
200
+ req_hash = generate_rest_request('PUT', headers.merge(:url=>bucket, :data => data, 'Content-Length' => ((data && data.size) || 0).to_s))
201
201
  request_info(req_hash, RightHttp2xxParser.new)
202
202
  rescue Exception => e
203
203
  # if the bucket exists AWS returns an error for the location constraint interface. Drop it
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mwilliams-right_aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.1
4
+ version: 1.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - RightScale, Inc.