lib/aws-sdk-resources/services/s3/bucket.rb in aws-sdk-resources-2.1.30 vs lib/aws-sdk-resources/services/s3/bucket.rb in aws-sdk-resources-2.1.31

- old
+ new

@@ -85,21 +85,18 @@ url = client.config.endpoint.dup if bucket_as_hostname?(url.scheme == 'https') url.host = "#{name}.#{url.host}" else url.path += '/' unless url.path[-1] == '/' - url.path += path_escape(name) + url.path += Seahorse::Util.uri_escape(name) end url.to_s end def bucket_as_hostname?(https) Plugins::S3BucketDns.dns_compatible?(name, https) && !client.config.force_path_style end - def path_escape(name) - name.gsub(/[^\/]+/) {|part| Seahorse::Util.uri_escape(part) } - end end end end