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.
- data/VERSION +1 -1
- data/lib/s3/right_s3_interface.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.10.
|
|
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
|