mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-24 13:03:47 +00:00
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…
x
Reference in New Issue
Block a user