Skip to content

Commit bc7d75a

Browse files
committed
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 <[email protected]>
1 parent 27ff214 commit bc7d75a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rgw/rgw_rest_s3.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2128,7 +2128,7 @@ void RGWGetBucketLocation_ObjStore_S3::send_response()
21282128
dump_errno(s);
21292129
dump_header(s, "x-rgw-bucket-placement-target",
21302130
s->bucket->get_info().placement_rule.name);
2131-
end_header(s, this);
2131+
end_header(s, this, to_mime_type(s->format));
21322132
dump_start(s);
21332133

21342134
std::unique_ptr<rgw::sal::ZoneGroup> zonegroup;

0 commit comments

Comments
 (0)