Fix gzip response if condition