diff options
author | Andrew Dolgov <[email protected]> | 2021-02-12 21:43:38 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-12 21:43:38 +0300 |
commit | 6af83e3881b3f38104027275913f7fc55251d020 (patch) | |
tree | 9fd5747220b0137243e2f5b9c0c0ec4ced797069 /api | |
parent | e6624cf631f772f2a1eac9412e7a96d6545e91e6 (diff) |
drop ENABLE_GZIP_OUTPUT; system prefs: load php info only if needed
Diffstat (limited to 'api')
-rw-r--r-- | api/index.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/api/index.php b/api/index.php index 77552af46..9e998df84 100644 --- a/api/index.php +++ b/api/index.php @@ -22,13 +22,7 @@ ini_set('session.use_cookies', 0); ini_set("session.gc_maxlifetime", 86400); - if (defined('ENABLE_GZIP_OUTPUT') && ENABLE_GZIP_OUTPUT && - function_exists("ob_gzhandler")) { - - ob_start("ob_gzhandler"); - } else { - ob_start(); - } + ob_start(); $input = file_get_contents("php://input"); |