• File singletons/response.php
    line 112: echo $result;
    line 121: echo “$callback($result)”;

    It would be nice to wrap these lines with something like:
    ((function_exists(‘ob_gzhandler’)) && (strpos( $_SERVER[‘HTTP_ACCEPT_ENCODING’], ‘gzip’ ) !== false))
    ? ob_start(‘ob_gzhandler’)
    : ob_start();
    echo ………..; // here the original echo code
    ob_end_flush();

    https://ww.wp.xz.cn/plugins/json-api/

The topic ‘Enable compressed output gzip’ is closed to new replies.