]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/s3: align output format with client request 47577/head
authorMatt Benjamin <mbenjamin@redhat.com>
Sat, 13 Aug 2022 18:57:22 +0000 (14:57 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 16 Aug 2022 18:18:06 +0000 (14:18 -0400)
commit7ad538611094117ef5b5c6d4a71f0414d11c5389
tree30e3511262aa97de73c893c182f75dc9f7956d7a
parent9070c229acb762692258a8299a5ace6b53a4993f
rgw/s3: align output format with client request

In general, e.g., in the S3 ListBucket response, the
output Formatter is already of the type requested in the HTTP
Accept header.

Therefore, while there are still many instances where the of
Formatter is assumed to be XML, it appears necessarily safe
and seemingly correct to extend this assumption to end_header(...),
which sends the response content-type.

Fixes: https://tracker.ceph.com/issues/55680
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_rest.cc
src/rgw/rgw_rest_s3.cc