]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: return 'Access-Control-Allow-Origin' header when the set bucket versioning throu... 17631/head
authoryuliyang <yuliyang@cmss.chinamobile.com>
Mon, 11 Sep 2017 07:28:30 +0000 (15:28 +0800)
committeryuliyang <yuliyang@cmss.chinamobile.com>
Mon, 11 Sep 2017 07:28:30 +0000 (15:28 +0800)
Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
src/rgw/rgw_rest_s3.cc

index 024ac4a0229f5379928fac36ec15ddfd7dc0f03d..a66fbb97ac4db29e4de298c5fb09c51c3d7cecf7 100644 (file)
@@ -962,7 +962,7 @@ void RGWSetBucketVersioning_ObjStore_S3::send_response()
   if (op_ret)
     set_req_state_err(s, op_ret);
   dump_errno(s);
-  end_header(s);
+  end_header(s, this, "application/xml");
 }
 
 int RGWSetBucketWebsite_ObjStore_S3::get_params()