unit tests
This commit is contained in:
parent
ebd703fff0
commit
0f8089ccdf
@ -198,10 +198,10 @@ class ObjectController(Controller):
|
|||||||
if 200 <= status < 300:
|
if 200 <= status < 300:
|
||||||
new_hdrs = {}
|
new_hdrs = {}
|
||||||
for key, val in headers.iteritems():
|
for key, val in headers.iteritems():
|
||||||
key = key.lower()
|
_key = key.lower()
|
||||||
if key.startswith('x-object-meta-'):
|
if _key.startswith('x-object-meta-'):
|
||||||
new_hdrs['x-amz-meta-' + key[14:]] = val
|
new_hdrs['x-amz-meta-' + key[14:]] = val
|
||||||
elif key in ('content-length', 'content-type',
|
elif _key in ('content-length', 'content-type',
|
||||||
'content-encoding', 'etag', 'last-modified'):
|
'content-encoding', 'etag', 'last-modified'):
|
||||||
new_hdrs[key] = val
|
new_hdrs[key] = val
|
||||||
return Response(status=status, headers=new_hdrs, app_iter=app_iter)
|
return Response(status=status, headers=new_hdrs, app_iter=app_iter)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user