treat request.headers as a more general list of dicts
This commit is contained in:
parent
11dbe5c10f
commit
0502427ac1
@ -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…
Reference in New Issue
Block a user