From 1c84928727e3c9904efd1cf3b23ec20aa8396aeb Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 9 Nov 2021 23:04:07 +0000 Subject: [PATCH] Fix test --- src/Module/BaseApi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index 41a744b8cf..032d5404ff 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); }