Project

General

Profile

Bug #14922 ยป class.gzip_encode.php.diff

Administrator Admin, 2005-08-11 23:50

View differences:

class.gzip_encode.php 2005-08-11 23:51:24.019941854 +0200
if (!$encoding) return;
$this->encoding = $encoding;
if ($level === true) {
if (strcmp($level,'true') == 0 ) {
$level = $this->get_complevel();
}
$level = t3lib_div::intInRange($level,0,9,3);
$this->level = $level;
$contents = ob_get_contents();
......
Header('Content-Encoding: ' . $encoding);
Header('Content-Length: ' . strlen($gzdata));
Header('X-Content-Encoded-By: class.gzip_encode '.$this->_version);
Header('X-Comp-Level: ' . $level);
Header('X-Orig-size: ' . $size);
Header('X-Gzip-size: ' . $this->gzsize);
echo $gzdata;
}
    (1-1/1)