Fixed rest_proxy.php to work with gzip response