mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Resolve #432
This commit is contained in:
parent
03e8d38a1c
commit
82afd528d6
2 changed files with 4 additions and 2 deletions
|
|
@ -186,7 +186,9 @@ class ServiceActions
|
||||||
|
|
||||||
$this->Plugins()->RunHook('filter.json-response', array($sAction, &$aResponseItem));
|
$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());
|
$sResult = \MailSo\Base\Utils::Php2js($aResponseItem, $this->Logger());
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ abstract class Stream
|
||||||
public static function JSON($data)
|
public static function JSON($data)
|
||||||
{
|
{
|
||||||
echo \MailSo\Base\Utils::Php2js($data) . "\n";
|
echo \MailSo\Base\Utils::Php2js($data) . "\n";
|
||||||
\ob_flush();
|
// \ob_flush();
|
||||||
\flush();
|
\flush();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue