handle gzip response