summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-30 10:54:40 +0200
committerAlib <aliboba@free.fr>2010-03-30 10:54:40 +0200
commitf21cb1c93557afb69a68ea6b5f8eb65fafecf1f0 (patch)
treea9b530c67f945417157df47c974713f2e59d852d /bin
parent1907228668303c3050035b889ae3ac346205f07b (diff)
downloadistreamdev-f21cb1c93557afb69a68ea6b5f8eb65fafecf1f0.tar.gz
istreamdev-f21cb1c93557afb69a68ea6b5f8eb65fafecf1f0.tar.bz2
default to no compression if browser don't support gzip
Diffstat (limited to 'bin')
-rw-r--r--bin/backend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/backend.php b/bin/backend.php
index 7ea0649..cef568c 100644
--- a/bin/backend.php
+++ b/bin/backend.php
@@ -1,5 +1,5 @@
<?php
-ob_start("ob_gzhandler");
+if(!ob_start("ob_gzhandler")) ob_start();
header('Content-Type: application/json; charset: utf-8');
header('Content-Encoding: gzip');