]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commitdiff
client: don't escape copy source header
authorJosh Durgin <josh.durgin@inktank.com>
Fri, 25 Oct 2013 19:44:46 +0000 (12:44 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Sat, 26 Oct 2013 01:31:51 +0000 (18:31 -0700)
Requests takes care of this for us.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
radosgw_agent/client.py

index a5c4cce739a0114eb2a0e5423ccdef87be0a9644..f1a447c306fdbb802b0c5777eb28d554ebd2ddcb 100644 (file)
@@ -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)