Fix s3 url regex. Closes #516.
This commit is contained in:
parent
eba9033cc9
commit
31dbe61233
@ -48,7 +48,7 @@ class ResponseObject(_TemplateEnvironmentMixin):
|
||||
# For localhost, default to path-based buckets
|
||||
return False
|
||||
|
||||
path_based = (host == 's3.amazonaws.com' or re.match("s3.(.*).amazonaws.com", host))
|
||||
path_based = (host == 's3.amazonaws.com' or re.match(r"s3\.([^.]*)\.amazonaws\.com", host))
|
||||
return not path_based
|
||||
|
||||
def is_delete_keys(self, request, path, bucket_name):
|
||||
|
Loading…
Reference in New Issue
Block a user