removed X-Copy-From header from new request in copy PUT

This commit is contained in:
John Dickinson
2010-10-26 10:23:43 -05:00
parent 0065859bd8
commit 1d33f92abc

View File

@@ -644,7 +644,8 @@ class ObjectController(Controller):
environ=req.environ, headers=req.headers)
new_req.content_length = source_resp.content_length
new_req.etag = source_resp.etag
new_req.headers['X-Copy-From'] = source_header.split('/', 2)[2]
#new_req.headers['X-Copy-From'] = source_header.split('/', 2)[2]
del new_req.headers['X-Copy-From']
for k, v in source_resp.headers.items():
if k.lower().startswith('x-object-meta-'):
new_req.headers[k] = v