We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c74af63 commit 9deeaf7Copy full SHA for 9deeaf7
templates/monitor.xml.php
@@ -9,22 +9,11 @@
9
$authsources = $this->data['authsources'];
10
$metadata = $this->data['metadata'];
11
$healthInfo = $this->data['healthInfo'];
12
-$protocol = $this->data['protocol'];
13
-$responseCode = $this->data['responseCode'];
14
15
list($healthState, $healthColor) = $healthInfo[$state];
16
17
$overall = $healthState;
18
19
-$GLOBALS['http_response_code'] = $responseCode;
20
-if ($responseCode === 200) {
21
- header($protocol . ' 200 OK');
22
-} else if ($responseCode === 417) {
23
- header($protocol . ' 417 Expectation failed');
24
-} else {
25
- header($protocol . ' 500 Internal Server Error');
26
-}
27
-
28
$output = '<?xml version="1.0" encoding="UTF-8"?>';
29
$output .= '<monitor>';
30
$output .= '<health>' . $overall . '</health>';
0 commit comments