diff --git a/scrapy/utils/gz.py b/scrapy/utils/gz.py index d035f9fdf..f174950a4 100644 --- a/scrapy/utils/gz.py +++ b/scrapy/utils/gz.py @@ -54,4 +54,4 @@ def gunzip(data): def is_gzipped(response): """Return True if the response is gzipped, or False otherwise""" ctype = response.headers.get('Content-Type', b'') - return ctype in (b'application/x-gzip', b'application/gzip') + return b'application/x-gzip' in ctype or b'application/gzip' in ctype