diff options
| author | Eliot Whalan <ewhal@pantsu.cat> | 2016-06-18 03:23:32 +0200 |
|---|---|---|
| committer | Eliot Whalan <ewhal@pantsu.cat> | 2016-06-18 03:23:32 +0200 |
| commit | 28e0f18b8cc2d8d515566a40edf6b7a19891eef1 (patch) | |
| tree | eca1cfdb7836cd143dacf0c31cd793a07d3ba5ab /static/php/upload.php | |
| parent | 5a3ced4c9700a3e8863efab813eccb4df1fff38d (diff) | |
Remove zlib compression as it is already handled by nginx
Diffstat (limited to 'static/php/upload.php')
| -rw-r--r-- | static/php/upload.php | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/static/php/upload.php b/static/php/upload.php index c8082e6..476120b 100644 --- a/static/php/upload.php +++ b/static/php/upload.php @@ -5,14 +5,6 @@ * uploaded metadata to database. */ -// Check if we can compress our output; if we can, we'll do it -// This feature is deprecated since version 2.1.0. -if (ini_get('zlib.output_compression') !== 'Off' - && isset($_SERVER['HTTP_ACCEPT_ENCODING']) - && strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false) { - ob_start('ob_gzhandler'); -} - require_once 'classes/Response.class.php'; require_once 'classes/UploadException.class.php'; require_once 'classes/UploadedFile.class.php'; |
