fix content-encoding header checks in specs
Merge branch 'master' into wz