summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-04-05 15:30:28 +0200
committerTheTroll <trolldev@gmail.com>2010-04-05 15:30:28 +0200
commitce0f5df8375eb7422ee2887594c80f2acd877b9e (patch)
tree0ffbdbc970e53e3f0b8df608dd388d4ccc396295 /bin
parent1229876c0499d73fafb26e740d49ca2e1381dfc7 (diff)
downloadistreamdev-ce0f5df8375eb7422ee2887594c80f2acd877b9e.tar.gz
istreamdev-ce0f5df8375eb7422ee2887594c80f2acd877b9e.tar.bz2
Ob start check
Diffstat (limited to 'bin')
-rw-r--r--bin/backend.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/backend.php b/bin/backend.php
index 0eedc2b..b5ef877 100644
--- a/bin/backend.php
+++ b/bin/backend.php
@@ -8,7 +8,9 @@ if (function_exists('dl'))
if (!extension_loaded('zlib'))
dl(zlib.so);
}
-ob_start();
+
+if(!ob_start("ob_gzhandler"))
+ ob_start();
header('Content-Type: application/json; charset: utf-8');
header('Content-Encoding: gzip');