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
commit 2f7789e397
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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',
[