From: Seena Fallah Date: Fri, 5 Jul 2024 12:40:55 +0000 (+0200) Subject: rgw: add missing content-type for RGWGetBucketLocation X-Git-Tag: v20.0.0~1508^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F58442%2Fhead;p=ceph.git rgw: add missing content-type for RGWGetBucketLocation GetBucketLocation API is returning an XML as a body so it deserves to have a content-type in the headers. Fixes: https://tracker.ceph.com/issues/66842 Signed-off-by: Seena Fallah --- diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index baead29ebcf..8da355dd816 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -2128,7 +2128,7 @@ void RGWGetBucketLocation_ObjStore_S3::send_response() dump_errno(s); dump_header(s, "x-rgw-bucket-placement-target", s->bucket->get_info().placement_rule.name); - end_header(s, this); + end_header(s, this, to_mime_type(s->format)); dump_start(s); std::unique_ptr zonegroup;