<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
*/
public function exit(ResponseInterface $response)
{
+ header(sprintf("HTTP/%s %s %s",
+ $response->getProtocolVersion(),
+ $response->getStatusCode(),
+ $response->getReasonPhrase())
+ );
+
foreach ($response->getHeaders() as $key => $header) {
if (is_array($header)) {
$header_str = implode(',', $header);
*/
$timestamp = microtime(true);
$this->initContent($response, $mode);
- $profiler->set(microtime(true) - $timestamp, 'content');
// Load current theme info after module has been initialized as theme could have been set in module
$currentTheme = $app->getCurrentTheme();
*/
$this->initFooter($app, $mode, $l10n);
+ $profiler->set(microtime(true) - $timestamp, 'aftermath');
+
if (!$mode->isAjax()) {
Hook::callAll('page_end', $this->page['content']);
}