summaryrefslogtreecommitdiff
path: root/bin/backend.php
diff options
context:
space:
mode:
Diffstat (limited to 'bin/backend.php')
-rw-r--r--bin/backend.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/backend.php b/bin/backend.php
index 4de6601..b69fb0d 100644
--- a/bin/backend.php
+++ b/bin/backend.php
@@ -9,8 +9,9 @@ if (function_exists('dl'))
dl(zlib.so);
}
-
-ob_start("ob_gzhandler");
+if(!ob_start("ob_gzhandler"))
+ ob_start();
+ob_start("ob_gzhandler");
header('Content-Type: application/json; charset: utf-8');
header('Content-Encoding: gzip');