Fixed empty response error in proxy.php