From ce0f5df8375eb7422ee2887594c80f2acd877b9e Mon Sep 17 00:00:00 2001 From: TheTroll Date: Mon, 5 Apr 2010 15:30:28 +0200 Subject: Ob start check --- bin/backend.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') 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'); -- cgit v1.2.3