]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: S3 object copy content type fix 3574/head
authorYehuda Sadeh <yehuda@redhat.com>
Wed, 5 Nov 2014 20:35:42 +0000 (12:35 -0800)
committerLoic Dachary <ldachary@redhat.com>
Mon, 2 Feb 2015 14:35:16 +0000 (15:35 +0100)
Fixes: #9478
Backport: firefly, giant
Content type for S3 object copy response should be set to
application/xml.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 31963459a0a869c4d32f55baa629f36df33eaa90)

src/rgw/rgw_rest_s3.cc

index b5a7a7266d6eea477de4d3b6e302dc0909807ea8..06607f98d7e177dc0c5f2252e9e1469dc7e68d2c 100644 (file)
@@ -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");
     }