1
0
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:
Paul Tremberth 2017-03-07 10:51:34 +01:00
parent b174744b80
commit 4caceccd59

View File

@ -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'