mwilliams-right_aws 1.10.1 → 1.10.2
Sign up to get free protection for your applications and to get access to all the features.
- 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
|