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:
@@ -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',
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user