mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-02 21:12:02 +08: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));
|
||||
|
||||
\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());
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ abstract class Stream
|
|||
public static function JSON($data)
|
||||
{
|
||||
echo \MailSo\Base\Utils::Php2js($data) . "\n";
|
||||
\ob_flush();
|
||||
// \ob_flush();
|
||||
\flush();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue