Skip to content

Commit 9deeaf7

Browse files
committed
Fix XML template
1 parent c74af63 commit 9deeaf7

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

templates/monitor.xml.php

-11
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,11 @@
99
$authsources = $this->data['authsources'];
1010
$metadata = $this->data['metadata'];
1111
$healthInfo = $this->data['healthInfo'];
12-
$protocol = $this->data['protocol'];
13-
$responseCode = $this->data['responseCode'];
1412

1513
list($healthState, $healthColor) = $healthInfo[$state];
1614

1715
$overall = $healthState;
1816

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-
2817
$output = '<?xml version="1.0" encoding="UTF-8"?>';
2918
$output .= '<monitor>';
3019
$output .= '<health>' . $overall . '</health>';

0 commit comments

Comments
 (0)