mirror of
https://github.com/friendica/friendica
synced 2025-04-22 03:10:10 +00:00
Fix exception module not setting the HTTP response code
- Page->run now returns an updated response for use with Page->exit - Remove now duplicated header setting in Page->run - Remove now obsolete (and ineffective) HTTP return code setting from Module\Special\HTTPException->content - Add HTTP response code and reason setting in BaseModule->run
This commit is contained in:
parent
a39029f953
commit
3748adf2fd
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