forked from leftypol/leftypol
pages.php: gzip buffering of json ban stream was causing excessive latency
This commit is contained in:
parent
cbbc267b65
commit
f6b74cb282
1 changed files with 0 additions and 3 deletions
|
|
@ -1189,9 +1189,6 @@ function mod_bans_json(Context $ctx) {
|
|||
if (!hasPermission($config['mod']['ban']))
|
||||
error($config['error']['noaccess']);
|
||||
|
||||
// Compress the json for faster loads
|
||||
if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler");
|
||||
|
||||
Bans::stream_json(false, !hasPermission($config['mod']['view_banstaff']), $mod['boards']);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue