summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-28 15:24:58 +0200
committerAlib <aliboba@free.fr>2010-03-28 15:24:58 +0200
commit9bae58f18ce68118f980e66cb8b9cf342310e36d (patch)
treefa09a3775381ed9fea3b238e58b2c9adface7cce /index.php
parent2b1358884535497eebd6d2ad9a768b56e1953af6 (diff)
downloadistreamdev-9bae58f18ce68118f980e66cb8b9cf342310e36d.tar.gz
istreamdev-9bae58f18ce68118f980e66cb8b9cf342310e36d.tar.bz2
added gzip encoding to json & index
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 2 insertions, 0 deletions
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>