Commit 467d5b8f authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

Fix pithos get object metadata response headers

X-Object-Modified-By header was accidentally 
eliminated in the response
parent 957dabba
......@@ -234,10 +234,10 @@ def put_object_headers(response, meta, restricted=False, token=None):
if not restricted:
response['X-Object-Hash'] = meta['hash']
response['X-Object-UUID'] = meta['uuid']
modified_by = retrieve_displayname(token, meta['modified_by'])
if TRANSLATE_UUIDS:
response['X-Object-Modified-By'] = smart_str(
modified_by, strings_only=True)
meta['modified_by'] = retrieve_displayname(token, meta['modified_by'])
response['X-Object-Modified-By'] = smart_str(
meta['modified_by'], strings_only=True)
response['X-Object-Version'] = meta['version']
response['X-Object-Version-Timestamp'] = http_date(
int(meta['version_timestamp']))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment