From: Josh Durgin Date: Fri, 25 Oct 2013 19:44:46 +0000 (-0700) Subject: client: don't escape copy source header X-Git-Tag: v1.1~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=02e0ed73ddcec04526ff551fcf33afec4f76f08b;p=radosgw-agent.git client: don't escape copy source header Requests takes care of this for us. Signed-off-by: Josh Durgin --- diff --git a/radosgw_agent/client.py b/radosgw_agent/client.py index a5c4cce..f1a447c 100644 --- a/radosgw_agent/client.py +++ b/radosgw_agent/client.py @@ -222,7 +222,7 @@ def sync_object_intra_region(connection, bucket_name, object_name, src_zone, 'rgwx-op-id': op_id, }, headers={ - 'x-amz-copy-source': path, + 'x-amz-copy-source': '%s/%s' % (bucket_name, object_name), }, expect_json=False)