updated rest_proxy.php

commented out a logging line and added an if-then around gzdecode.