More liberal regrex for S3 region matching. Closes #580.
This commit is contained in:
parent
b932343fec
commit
15dc619fb2
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ class ResponseObject(_TemplateEnvironmentMixin):
|
||||||
# For localhost, default to path-based buckets
|
# For localhost, default to path-based buckets
|
||||||
return False
|
return False
|
||||||
|
|
||||||
path_based = (host == 's3.amazonaws.com' or re.match(r"s3\.([^.]*)\.amazonaws\.com", host))
|
path_based = (host == 's3.amazonaws.com' or re.match(r"s3[\.\-]([^.]*)\.amazonaws\.com", host))
|
||||||
return not path_based
|
return not path_based
|
||||||
|
|
||||||
def is_delete_keys(self, request, path, bucket_name):
|
def is_delete_keys(self, request, path, bucket_name):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue