From: Michael Vogel Date: Wed, 10 Nov 2021 03:44:59 +0000 (+0100) Subject: Update src/Module/BaseApi.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=58ffded0c8eca97217b11aa41935fc0228e16320;p=friendica.git Update src/Module/BaseApi.php Co-authored-by: Hypolite Petovan --- diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index 032d5404ff..44461117da 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); }