]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: return 'Access-Control-Allow-Origin' header when the set and delete bucket websi... 17632/head
authoryuliyang <yuliyang@cmss.chinamobile.com>
Mon, 11 Sep 2017 08:22:55 +0000 (16:22 +0800)
committeryuliyang <yuliyang@cmss.chinamobile.com>
Mon, 11 Sep 2017 08:32:33 +0000 (16:32 +0800)
Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
src/rgw/rgw_rest_s3.cc

index 024ac4a0229f5379928fac36ec15ddfd7dc0f03d..295890dc96ebb56834fd06db164ba005125eb727 100644 (file)
@@ -1014,7 +1014,7 @@ void RGWSetBucketWebsite_ObjStore_S3::send_response()
   if (op_ret < 0)
     set_req_state_err(s, op_ret);
   dump_errno(s);
-  end_header(s);
+  end_header(s, this, "application/xml");
 }
 
 void RGWDeleteBucketWebsite_ObjStore_S3::send_response()
@@ -1024,7 +1024,7 @@ void RGWDeleteBucketWebsite_ObjStore_S3::send_response()
   }
   set_req_state_err(s, op_ret);
   dump_errno(s);
-  end_header(s);
+  end_header(s, this, "application/xml");
 }
 
 void RGWGetBucketWebsite_ObjStore_S3::send_response()