mirror of https://github.com/scrapy/scrapy.git
Use 3-bytes for gzip archive type sniffing
This commit is contained in:
parent
b174744b80
commit
4caceccd59
|
|
@ -62,4 +62,4 @@ def is_gzipped(response):
|
|||
|
||||
|
||||
def gzip_magic_number(response):
|
||||
return response.body[:2] == b'\x1f\x8b'
|
||||
return response.body[:3] == b'\x1f\x8b\x08'
|
||||
|
|
|
|||
Loading…
Reference in New Issue