treat request.headers as a more general list of dicts

This commit is contained in:
Konstantinos Koukopoulos 2014-09-10 17:37:20 +03:00
parent 11dbe5c10f
commit 0502427ac1

View File

@ -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: