Add header check for gzip format and test.