1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #833 from fog/no_us_east_1

All directories.create on us-east-1
This commit is contained in:
Wesley Beary 2012-04-03 05:52:30 -07:00
commit 61ffd3ce11

View file

@ -107,7 +107,10 @@ module Fog
if @acl
options['x-amz-acl'] = @acl
end
options['LocationConstraint'] = @location || self.connection.region
lc = @location || self.connection.region
if lc != 'us-east-1' # us-east-1 is not valid: See http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketPUT.html
options['LocationConstraint'] = lc
end
connection.put_bucket(key, options)
true
end