diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index 41a744b8c..032d5404f 100644 --- a/src/Module/BaseApi.php +++ b/src/Module/BaseApi.php @@ -344,7 +344,7 @@ class BaseApi extends BaseModule 'request' => DI::args()->getQueryString() ]; - header($_SERVER["SERVER_PROTOCOL"] . ' ' . $code . ' ' . $description); + header($_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.1' . ' ' . $code . ' ' . $description); self::exit('status', ['status' => $error], $format); }