This commit is contained in:
the-djmaze 2022-06-08 13:16:38 +02:00
parent 03e8d38a1c
commit 82afd528d6
2 changed files with 4 additions and 2 deletions

View file

@ -186,7 +186,9 @@ class ServiceActions
$this->Plugins()->RunHook('filter.json-response', array($sAction, &$aResponseItem));
\header('Content-Type: application/json; charset=utf-8');
if (!\headers_sent()) {
\header('Content-Type: application/json; charset=utf-8');
}
$sResult = \MailSo\Base\Utils::Php2js($aResponseItem, $this->Logger());

View file

@ -42,7 +42,7 @@ abstract class Stream
public static function JSON($data)
{
echo \MailSo\Base\Utils::Php2js($data) . "\n";
\ob_flush();
// \ob_flush();
\flush();
}
}