]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Remove spurious XML header for GetBucketPolicy 15586/head
authorAdam C. Emerson <aemerson@redhat.com>
Thu, 8 Jun 2017 21:51:34 +0000 (17:51 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Tue, 13 Jun 2017 15:37:42 +0000 (11:37 -0400)
Fixes: http://tracker.ceph.com/issues/20247
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/rgw_op.cc

index 14236bee35e0d521c7956aaa5b028ad2e8b6fc39..96c7820f7a3882b6838be7bef585072588e5a97b 100644 (file)
@@ -6524,9 +6524,7 @@ void RGWGetBucketPolicy::send_response()
     set_req_state_err(s, op_ret);
   }
   dump_errno(s);
-  end_header(s);
-  dump_start(s);
-  rgw_flush_formatter(s, s->formatter);
+  end_header(s, this, "application/json");
   dump_body(s, policy);
 }