summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/backend.php2
-rw-r--r--index.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/bin/backend.php b/bin/backend.php
index 6cc15f8..ab51bf6 100755
--- a/bin/backend.php
+++ b/bin/backend.php
@@ -1,6 +1,6 @@
<?php
-header('Content-Type: application/json; charset: utf-8');
+header('Content-Encoding: gzip; Content-Type: application/json; charset: utf-8');
if (file_exists('../config.php'))
include ('../config.php');
diff --git a/index.php b/index.php
index 63851b5..3a76c9d 100644
--- a/index.php
+++ b/index.php
@@ -4,7 +4,9 @@ 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();
?>
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" manifest="istreamdev.manifest">
<head>