mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-11-29 21:05:15 +00:00
@@ -156,6 +156,8 @@ class HTTPHandler(urllib.request.AbstractHTTPHandler):
|
|||||||
def gz(data):
|
def gz(data):
|
||||||
# There may be junk added the end of the file
|
# There may be junk added the end of the file
|
||||||
# We ignore it by only ever decoding a single gzip payload
|
# 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)
|
return zlib.decompress(data, wbits=zlib.MAX_WBITS | 16)
|
||||||
|
|
||||||
def http_request(self, req):
|
def http_request(self, req):
|
||||||
|
|||||||
Reference in New Issue
Block a user