mirror of
https://github.com/friendica/friendica
synced 2025-04-19 09:50:11 +00:00
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:
commit
2f7789e397
4 changed files with 11 additions and 19 deletions
|
@ -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',
|
||||
[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue