]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add missing content-type for RGWGetBucketLocation 58442/head
authorSeena Fallah <seenafallah@gmail.com>
Fri, 5 Jul 2024 12:40:55 +0000 (14:40 +0200)
committerSeena Fallah <seenafallah@gmail.com>
Fri, 5 Jul 2024 12:40:55 +0000 (14:40 +0200)
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 <seenafallah@gmail.com>
src/rgw/rgw_rest_s3.cc

index baead29ebcfa18150004ca4b820f06297c820d4a..8da355dd8162c9e7fa45dbf6808906733a84b14f 100644 (file)
@@ -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<rgw::sal::ZoneGroup> zonegroup;