adding support if non-gzip headers is attached