Add dot as a valid s3 metadata key (#3958)
This commit is contained in:
parent
75730e6f83
commit
6adb570c48
2 changed files with 24 additions and 3 deletions
|
|
@ -73,7 +73,7 @@ def parse_region_from_url(url):
|
|||
|
||||
def metadata_from_headers(headers):
|
||||
metadata = CaseInsensitiveDict()
|
||||
meta_regex = re.compile(r"^x-amz-meta-([a-zA-Z0-9\-_]+)$", flags=re.IGNORECASE)
|
||||
meta_regex = re.compile(r"^x-amz-meta-([a-zA-Z0-9\-_.]+)$", flags=re.IGNORECASE)
|
||||
for header, value in headers.items():
|
||||
if isinstance(header, six.string_types):
|
||||
result = meta_regex.match(header)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue