treat request.headers as a more general list of dicts
This commit is contained in:
parent
11dbe5c10f
commit
0502427ac1
1 changed files with 1 additions and 1 deletions
|
|
@ -229,7 +229,7 @@ class ResponseObject(object):
|
|||
meta_regex = re.compile('^x-amz-meta-([a-zA-Z0-9\-_]+)$', flags=re.IGNORECASE)
|
||||
if replace is True:
|
||||
key.clear_metadata()
|
||||
for header in request.headers:
|
||||
for header, value in request.headers.items():
|
||||
if isinstance(header, six.string_types):
|
||||
result = meta_regex.match(header)
|
||||
if result:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue