support not double gzipping based on gzip header