check if gzip encoding requested