diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index 032d5404f..44461117d 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'] ?? 'HTTP/1.1' . ' ' . $code . ' ' . $description); + header(($_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.1') . ' ' . $code . ' ' . $description); self::exit('status', ['status' => $error], $format); }