From 96a5c67121dde0d4d4cd13793bb131414b64cc28 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Fri, 30 Jan 2015 18:42:40 -0800 Subject: [PATCH] rgw: flush xml header on get acl request Fixes: #10106 Backport: firefly, giant dump_start() updates the formatter with the appropriate prefix, however, we never flushed the formatter. Signed-off-by: Yehuda Sadeh (cherry picked from commit eb45f861343162e018968b8c56693a8c6f5b2cab) --- src/rgw/rgw_rest_s3.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index cf0d929f05305..375380beac67d 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -1346,6 +1346,7 @@ void RGWGetACLs_ObjStore_S3::send_response() dump_errno(s); end_header(s, this, "application/xml"); dump_start(s); + rgw_flush_formatter(s, s->formatter); s->cio->write(acls.c_str(), acls.size()); } -- 2.39.5