Add support for gzip format when content-encoding is not correct