From 67ba4d3444f0f64dae6286be28276ba85376ecf6 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 5 Nov 2014 12:35:42 -0800 Subject: [PATCH] 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 (cherry picked from commit 31963459a0a869c4d32f55baa629f36df33eaa90) --- src/rgw/rgw_rest_s3.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index b5a7a7266d6ee..06607f98d7e17 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"); } -- 2.39.5