From 6393af9bf39bf2a626ef66bb22a94337cc3ada10 Mon Sep 17 00:00:00 2001 From: yuliyang Date: Mon, 11 Sep 2017 15:28:30 +0800 Subject: [PATCH] rgw: return 'Access-Control-Allow-Origin' header when the set bucket versioning through XMLHttpRequest Signed-off-by: yuliyang --- 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 024ac4a0229..a66fbb97ac4 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()