summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/backend.php4
-rw-r--r--index.php4
2 files changed, 3 insertions, 5 deletions
diff --git a/bin/backend.php b/bin/backend.php
index 59f8bd4..9d00294 100644
--- a/bin/backend.php
+++ b/bin/backend.php
@@ -8,9 +8,7 @@ if (function_exists('dl'))
if (!extension_loaded('zlib'))
dl(zlib.so);
}
-
-if(!ob_start("ob_gzhandler"))
- ob_start();
+ob_start();
header('Content-Type: application/json; charset: utf-8');
header('Content-Encoding: gzip');
diff --git a/index.php b/index.php
index d05895c..c6eb5c7 100644
--- a/index.php
+++ b/index.php
@@ -4,7 +4,7 @@ if (file_exists('config.php'))
else
include ('config_default.php');
include ('bin/auth.php');
-if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start();
+ob_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@@ -286,4 +286,4 @@ if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandl
</div>
</body>
-</html> \ No newline at end of file
+</html>