Skip to content

Commit

Permalink
make sure zlib exists when trying to use gzip_output #1410
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Nov 27, 2015
1 parent 2ba7bda commit 4a0b766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/httputils.php
Expand Up @@ -255,7 +255,7 @@ function http_cached_finish($file, $content) {
if(function_exists('gzopen')) io_saveFile("$file.gz",$content);

// finally send output
if ($conf['gzip_output']) {
if ($conf['gzip_output'] && function_exists('gzencode')) {
header('Vary: Accept-Encoding');
header('Content-Encoding: gzip');
print gzencode($content,9,FORCE_GZIP);
Expand Down

0 comments on commit 4a0b766

Please sign in to comment.