]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Module/BaseApi.php
authorMichael Vogel <icarus@dabo.de>
Wed, 10 Nov 2021 03:44:59 +0000 (04:44 +0100)
committerGitHub <noreply@github.com>
Wed, 10 Nov 2021 03:44:59 +0000 (04:44 +0100)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Module/BaseApi.php

index 032d5404ffe08c16d632c951c34a1b117ff045bb..44461117da6a6fe8bd954ecd54028b73f65dce02 100644 (file)
@@ -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);
        }