From: Enming Zhang Date: Tue, 12 Dec 2017 21:11:55 +0000 (+0800) Subject: rgw: add xml output header in RGWCopyObj_ObjStore_S3 response msg X-Git-Tag: v12.2.5~27^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=31bd4ee9ee7af0dabde834350c55b310b1785957;p=ceph.git rgw: add xml output header in RGWCopyObj_ObjStore_S3 response msg Fixes: http://tracker.ceph.com/issues/22416 Signed-off-by: Enming Zhang (cherry picked from commit 381a5b5e5da658d72d00846b82905592c59a6424) --- diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index aa5b525d04da..1eb4f49887d3 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -2128,6 +2128,7 @@ void RGWCopyObj_ObjStore_S3::send_partial_response(off_t ofs) dump_errno(s); end_header(s, this, "application/xml"); + dump_start(s); if (op_ret == 0) { s->formatter->open_object_section_in_ns("CopyObjectResult", XMLNS_AWS_S3); }