Merge pull request #13269 from MrPetovan/bug/fix-exception-return-code

Fix exception module not setting the HTTP response code
This commit is contained in:
Tobias Diekershoff
2023-07-10 09:59:04 +02:00
committed by GitHub
4 changed files with 11 additions and 19 deletions

View File

@@ -126,8 +126,6 @@ class HTTPException
*/
public function content(\Friendica\Network\HTTPException $e): string
{
header($this->server['SERVER_PROTOCOL'] ?? 'HTTP/1.0' . ' ' . $e->getCode() . ' ' . $e->getDescription());
if ($e->getCode() >= 400) {
$this->logger->debug('Exit with error',
[