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
1 changed files with 1 additions and 1 deletions

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'