]> git.mxchange.org Git - friendica.git/commitdiff
Fix test
authorMichael <heluecht@pirati.ca>
Tue, 9 Nov 2021 23:04:07 +0000 (23:04 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 9 Nov 2021 23:04:07 +0000 (23:04 +0000)
src/Module/BaseApi.php

index 41a744b8cf18df0bf20a74bd44c80b54d3924547..032d5404ffe08c16d632c951c34a1b117ff045bb 100644 (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);
        }