diff --git a/index.php b/index.php index a5d90e7..0cc6d81 100644 --- a/index.php +++ b/index.php @@ -2,7 +2,7 @@ require 'vendor/autoload.php'; require 'config.php'; -if($_SERVER["REQUEST_URI"] == '/metrics' || php_sapi_name() == 'cli') { +if(php_sapi_name() == 'cli' || $_SERVER["REQUEST_URI"] == '/metrics') { header('Content-Type: text/plain; version=0.0.4'); foreach ($config as $key => &$c) { if(isset($c['command'])) {