mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
gzip enabled breaking in close()
This commit is contained in:
parent
35d4d00429
commit
82015d4ae7
|
|
@ -351,8 +351,9 @@ class Grav extends Container
|
|||
*/
|
||||
public function close(ResponseInterface $response): void
|
||||
{
|
||||
$gzip_enabled = (int) Grav::instance()['config']->get('system.cache.gzip');
|
||||
// Make sure nothing extra gets written to the response.
|
||||
while (ob_get_level()) {
|
||||
while (ob_get_level() > 2 + $gzip_enabled) {
|
||||
ob_end_clean();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user