]> git.wh0rd.org - tt-rss.git/blobdiff - api/index.php
only enable ob_gzhandler if it exists
[tt-rss.git] / api / index.php
index b8a6d4c4a5807f924879abb4b97c19de54710fd2..fd59f4bee94ede410e32e8c51de4da953739da99 100644 (file)
@@ -21,7 +21,9 @@
 
        chdir("..");
 
-       if (defined('ENABLE_GZIP_OUTPUT') && ENABLE_GZIP_OUTPUT) {
+       if (defined('ENABLE_GZIP_OUTPUT') && ENABLE_GZIP_OUTPUT &&
+                       function_exists("ob_gzhandler")) {
+
                ob_start("ob_gzhandler");
        }