added check for gzip content encoding