]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: flush xml header on get acl request 4082/head
authorYehuda Sadeh <yehuda@redhat.com>
Sat, 31 Jan 2015 02:42:40 +0000 (18:42 -0800)
committerLoic Dachary <ldachary@redhat.com>
Thu, 19 Mar 2015 00:03:18 +0000 (01:03 +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 cf0d929f05305561373cedac368e6a1d338ab6a3..375380beac67d1f4eaeb7c33bfbc42f762f0fd6e 100644 (file)
@@ -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());
 }