From: Yehuda Sadeh Date: Wed, 5 Nov 2014 20:35:42 +0000 (-0800) Subject: rgw: S3 object copy content type fix X-Git-Tag: v0.89~61^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2864%2Fhead;p=ceph.git rgw: S3 object copy content type fix Fixes: #9478 Backport: firefly, giant Content type for S3 object copy response should be set to application/xml. Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index d99a00ea444c..33f5560b85e8 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -1284,7 +1284,7 @@ void RGWCopyObj_ObjStore_S3::send_partial_response(off_t ofs) set_req_state_err(s, ret); dump_errno(s); - end_header(s, this, "binary/octet-stream"); + end_header(s, this, "application/xml"); if (ret == 0) { s->formatter->open_object_section("CopyObjectResult"); }