]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: flush xml header on get acl request 3555/head
authorYehuda Sadeh <yehuda@redhat.com>
Sat, 31 Jan 2015 02:42:40 +0000 (18:42 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Sat, 31 Jan 2015 02:42:40 +0000 (18:42 -0800)
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>
src/rgw/rgw_rest_s3.cc

index 7fafd5994f1554e8f5bd25a01c494d428c17f3e5..69643afeec371aebc521311572669cbf4b58ba07 100644 (file)
@@ -1323,6 +1323,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());
 }