def is_gzipped(response):
    ctype = response.headers.get('Content-Type', b'')
    return ctype in (b'application/x-gzip', b'application/gzip')
Return True if the response is gzipped, or False otherwise
dataset/ETHPy150Open scrapy/scrapy/scrapy/utils/gz.py/is_gzipped