Closes #8012

Authored by: Grub4K
This commit is contained in:
Simon Sawicki 2023-09-02 15:18:04 +02:00
parent 7237c8dca0
commit 77bff23ee9
No known key found for this signature in database

View File

@ -156,6 +156,8 @@ class HTTPHandler(urllib.request.AbstractHTTPHandler):
def gz(data):
# There may be junk added the end of the file
# We ignore it by only ever decoding a single gzip payload
if not data:
return data
return zlib.decompress(data, wbits=zlib.MAX_WBITS | 16)
def http_request(self, req):