]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: flush xml header on get acl request 3961/head
authorYehuda Sadeh <yehuda@redhat.com>
Sat, 31 Jan 2015 02:42:40 +0000 (18:42 -0800)
committerLoic Dachary <ldachary@redhat.com>
Wed, 11 Mar 2015 11:20:06 +0000 (12:20 +0100)
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 <yehuda@redhat.com>
(cherry picked from commit eb45f861343162e018968b8c56693a8c6f5b2cab)

src/rgw/rgw_rest_s3.cc

index 6fcecf7ac540e5f65c7d06cd66282054d9debedc..c554620fa2ec138782c4dfdcab89a38b4c8b21ef 100644 (file)
@@ -1300,6 +1300,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());
 }