mirror of
https://github.com/friendica/friendica
synced 2025-04-22 01:50:11 +00:00
Move dependency-less Page->exit to Core\System::echoResponse
- The method doesn't actually exit - Fix a bug with header handling in System::echoResponse with numerical key header strings - Adding a full-string header with ICanCreateResponses->setHeader was resulting in a wrong header named after the numerical key
This commit is contained in:
parent
dd7bea4bd1
commit
94e3dde2e3
5 changed files with 38 additions and 37 deletions
|
@ -150,7 +150,7 @@ class Upload extends \Friendica\BaseModule
|
|||
$this->response->addContent($message);
|
||||
}
|
||||
|
||||
$this->page->exit($this->response->generate());
|
||||
System::echoResponse($this->response->generate());
|
||||
System::exit();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -207,7 +207,7 @@ class Upload extends \Friendica\BaseModule
|
|||
$this->response->addContent($message);
|
||||
}
|
||||
|
||||
$this->page->exit($this->response->generate());
|
||||
System::echoResponse($this->response->generate());
|
||||
System::exit();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue