Fix gzip response handling