From: yuliyang Date: Mon, 11 Sep 2017 07:28:30 +0000 (+0800) Subject: rgw: return 'Access-Control-Allow-Origin' header when the set bucket versioning throu... X-Git-Tag: v13.0.1~934^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6393af9bf39bf2a626ef66bb22a94337cc3ada10;p=ceph.git rgw: return 'Access-Control-Allow-Origin' header when the set bucket versioning through XMLHttpRequest Signed-off-by: yuliyang --- diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index 024ac4a0229f..a66fbb97ac4d 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -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()