mirror of
https://github.com/friendica/friendica
synced 2025-04-19 10:30:10 +00:00
Use X-REQUEST-ID for Error pages
This commit is contained in:
parent
5584e7a4e5
commit
4f1bb0d274
55 changed files with 218 additions and 130 deletions
|
@ -181,7 +181,7 @@ abstract class BaseModule implements ICanHandleRequests
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function run(array $request = []): ResponseInterface
|
||||
public function run(ModuleHTTPException $httpException, array $request = []): ResponseInterface
|
||||
{
|
||||
// @see https://github.com/tootsuite/mastodon/blob/c3aef491d66aec743a3a53e934a494f653745b61/config/initializers/cors.rb
|
||||
if (substr($this->args->getQueryString(), 0, 12) == '.well-known/') {
|
||||
|
@ -243,7 +243,7 @@ abstract class BaseModule implements ICanHandleRequests
|
|||
$this->response->addContent($arr['content']);
|
||||
$this->response->addContent($this->content($request));
|
||||
} catch (HTTPException $e) {
|
||||
$this->response->addContent((new ModuleHTTPException())->content($e));
|
||||
$this->response->addContent($httpException->content($e));
|
||||
} finally {
|
||||
$this->profiler->set(microtime(true) - $timestamp, 'content');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue