Revision 88dd5c4d snf-pithos-app/pithos/api/util.py
b/snf-pithos-app/pithos/api/util.py | ||
---|---|---|
231 | 231 |
if not restricted: |
232 | 232 |
response['X-Object-Hash'] = meta['hash'] |
233 | 233 |
response['X-Object-UUID'] = meta['uuid'] |
234 |
modified_by = retrieve_username(meta['modified_by']) |
|
234 | 235 |
response['X-Object-Modified-By'] = smart_str( |
235 |
meta['modified_by'], strings_only=True)
|
|
236 |
modified_by, strings_only=True)
|
|
236 | 237 |
response['X-Object-Version'] = meta['version'] |
237 | 238 |
response['X-Object-Version-Timestamp'] = http_date( |
238 | 239 |
int(meta['version_timestamp'])) |
... | ... | |
294 | 295 |
|
295 | 296 |
def retrieve_uuid(username): |
296 | 297 |
if is_uuid(username): |
297 |
return username |
|
298 |
return username |
|
299 |
|
|
298 | 300 |
try: |
299 | 301 |
return get_user_uuid( |
300 | 302 |
SERVICE_TOKEN, username, USER_INFO_URL, AUTHENTICATION_USERS) |
Also available in: Unified diff