From 4a248b43e7c9b5809736119fdc3eb5ace9f42a94 Mon Sep 17 00:00:00 2001 From: lentitude2tk Date: Tue, 16 Jul 2024 17:22:12 +0800 Subject: [PATCH] The GetBucketLocation API does not require path-style addressing in Amazon AWS S3 --- minio/helpers.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/minio/helpers.py b/minio/helpers.py index c7f6c9010..ba5419124 100644 --- a/minio/helpers.py +++ b/minio/helpers.py @@ -715,9 +715,6 @@ def build( # CreateBucket API requires path style in Amazon AWS S3. (method == "PUT" and not object_name and not query_params) or - # GetBucketLocation API requires path style in Amazon AWS S3. - (query_params and "location" in query_params) or - # Use path style for bucket name containing '.' which causes # SSL certificate validation error. ("." in bucket_name and self._url.scheme == "https")