mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 15:05:40 +00:00
Allow public access to the dev/health url and change response to 500
This commit is contained in:
parent
a19fcb42e6
commit
c24c52e77f
@ -19,8 +19,7 @@ class DevHealthController extends Controller
|
||||
// health check does not require permission to run
|
||||
|
||||
$checker = new EnvironmentChecker('health', 'Site health');
|
||||
$checker->init('');
|
||||
$checker->setErrorCode(404);
|
||||
$checker->setErrorCode(500);
|
||||
|
||||
return $checker;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user