Update src/Module/BaseApi.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
0b7cad5cb5
commit
58ffded0c8
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue