lib/aws-sdk-resources/services/s3/bucket.rb in aws-sdk-resources-2.11.418 vs lib/aws-sdk-resources/services/s3/bucket.rb in aws-sdk-resources-2.11.419

- old
+ new

@@ -112,9 +112,13 @@ url.host = "#{name}.#{url.host}" else url.path += '/' unless url.path[-1] == '/' url.path += Seahorse::Util.uri_escape(name) end + if (client.config.region == 'us-east-1') && + (client.config.s3_us_east_1_regional_endpoint == 'legacy') + url.host = Plugins::S3IADRegionalEndpoint.legacy_host(url.host) + end url.to_s end def bucket_as_hostname?(https) Plugins::S3BucketDns.dns_compatible?(name, https) &&