fixed to ensure x-copied-from header is included correctly

This commit is contained in:
John Dickinson
2010-10-26 14:51:22 -05:00
parent f84c62069c
commit 8a482ff23e

View File

@@ -769,7 +769,7 @@ class ObjectController(Controller):
resp = self.best_response(req, statuses, reasons, bodies, 'Object PUT',
etag=etag)
if source_header:
resp.headers['X-Copied-From'] = source_header
resp.headers['X-Copied-From'] = source_header.split('/', 2)[2]
for k, v in req.headers.items():
if k.lower().startswith('x-object-meta-'):
resp.headers[k] = v