X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=api%2Findex.php;h=fd59f4bee94ede410e32e8c51de4da953739da99;hb=6a79e8afeb2038fa20796846fd1e2b64113112c3;hp=b8a6d4c4a5807f924879abb4b97c19de54710fd2;hpb=787e5ebc2101e3a207a6f4e7deffcc0a07b9e28d;p=tt-rss.git diff --git a/api/index.php b/api/index.php index b8a6d4c4..fd59f4be 100644 --- a/api/index.php +++ b/api/index.php @@ -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"); }