Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support aliyun OSS api #654

Merged
merged 1 commit into from
Apr 23, 2018
Merged

support aliyun OSS api #654

merged 1 commit into from
Apr 23, 2018

Conversation

laixintao
Copy link
Contributor

Hi I see you set two url schemes here:

is_virtual_host_style = is_virtual_host(endpoint_url,

But from is_virtual_host only in amazon s3 returns True. I think the first url scheme is the most common one. And Aliyun OSS only support the first url scheme.

Hope this can be merged ASAP.

@@ -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.

Copy link
Member

@balamurugana balamurugana left a comment

Choose a reason for hiding this comment

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

As per submitter confirmation.

@laixintao
Copy link
Contributor Author

Thanks!

@nitisht nitisht merged commit 2aca556 into minio:master Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants