This commit is contained in:
Michael 2021-11-09 23:04:07 +00:00
parent bbc4fe851b
commit 1c84928727

View file

@ -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);
}