From: Yehuda Sadeh Date: Mon, 10 Nov 2014 21:29:07 +0000 (-0800) Subject: client: escape copy source header X-Git-Tag: v1.2~5^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b01865af669a7117d52c4f1dd549c2ceda87ce4f;p=radosgw-agent.git client: escape copy source header Need to esacpe the x-amz-copy-source header. Signed-off-by: Yehuda Sadeh --- diff --git a/radosgw_agent/client.py b/radosgw_agent/client.py index 94db32a..59078bd 100644 --- a/radosgw_agent/client.py +++ b/radosgw_agent/client.py @@ -225,7 +225,7 @@ def sync_object_intra_region(connection, bucket_name, object_name, src_zone, 'rgwx-op-id': op_id, }, headers={ - 'x-amz-copy-source': '%s/%s' % (bucket_name, object_name), + 'x-amz-copy-source': url_safe('%s/%s' % (bucket_name, object_name)), }, expect_json=False)