Blame SOURCES/024-crm_mon-cgi.patch

308170
From 5b98dd71cef867a115a1b07fca2351ba430baf08 Mon Sep 17 00:00:00 2001
308170
From: Chris Lumens <clumens@redhat.com>
308170
Date: Fri, 10 Jan 2020 09:54:59 -0500
308170
Subject: [PATCH] Fix: tools: Re-enable CGI output from crm_mon.
308170
308170
The CGI header was not being written out because "false" was being
308170
passed to the finish function.  That was being passed because we didn't
308170
want the HTML to be printed out without the refresh header.  The fix is
308170
just to s/false/true, and change the order so the extra header is added
308170
first.
308170
---
308170
 tools/crm_mon.c | 3 +--
308170
 1 file changed, 1 insertion(+), 2 deletions(-)
308170
308170
diff --git a/tools/crm_mon.c b/tools/crm_mon.c
308170
index c1dcf29..4b28bef 100644
308170
--- a/tools/crm_mon.c
308170
+++ b/tools/crm_mon.c
308170
@@ -1854,10 +1854,9 @@ static void
308170
 handle_html_output(crm_exit_t exit_code) {
308170
     xmlNodePtr html = NULL;
308170
 
308170
-    out->finish(out, exit_code, false, (void **) &html);
308170
     pcmk__html_add_header(html, "meta", "http-equiv", "refresh", "content",
308170
                           crm_itoa(options.reconnect_msec/1000), NULL);
308170
-    htmlDocDump(out->dest, html->doc);
308170
+    out->finish(out, exit_code, true, (void **) &html);
308170
 }
308170
 
308170
 /*
308170
-- 
308170
1.8.3.1
308170