Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions minio/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,9 @@ def is_virtual_host(endpoint_url, bucket_name):
# such buckets.
if 'https' in parsed_url.scheme and '.' in bucket_name:
return False
if 's3.amazonaws.com' in parsed_url.netloc:
return True
for host in ['s3.amazonaws.com', 'aliyuncs.com']:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@laixintao if things are working, I have no issues about this change. Can you confirm?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed.

if host in parsed_url.netloc:
return True
return False

def is_valid_bucket_name(bucket_name):
Expand Down