use wcf\system\template\TemplateEngine;
use wcf\system\user\storage\UserStorageHandler;
use wcf\util\FileUtil;
+use wcf\util\HeaderUtil;
use wcf\util\StringUtil;
use wcf\util\UserUtil;
// must treat the content as if the header did not appear in first place, this
// also overrules the gzip header if present
@header('Content-Encoding: identity');
+ HeaderUtil::exceptionDisableGzip();
}
// backwards compatibility
@header('Pragma: no-cache');
}
+ /**
+ * Disables gzip compression on runtime in case of an exception. You should not call
+ * this method at all, it exists for exception handling only.
+ */
+ public static function exceptionDisableGzip() {
+ self::$enableGzipCompression = false;
+ }
+
/**
* Parses the rendered output.
*