From 6fd6897bcad50975aecfb69c41f5c0bf2cc16584 Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Wed, 16 Oct 2019 12:56:14 +0200 Subject: [PATCH] rgw_rest_s3: use formatter->dump_bool Signed-off-by: Abhishek Lekshmanan --- src/rgw/rgw_rest_s3.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index 186809926189a..347d58faf7eb5 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -4177,7 +4177,7 @@ void RGWGetBucketPolicyStatus_ObjStore_S3::send_response() // mentions TRUE and FALSE, but boto/aws official clients seem to want lower // case which is returned by AWS as well; so let's be bug to bug compatible // with the API - s->formatter->dump_string("IsPublic", isPublic ? "true" : "false"); + s->formatter->dump_bool("IsPublic", isPublic); s->formatter->close_section(); rgw_flush_formatter_and_reset(s, s->formatter); -- 2.39.5