Skip to content

Commit

Permalink
Bugfix for 59e92b1
Browse files Browse the repository at this point in the history
Closes yt-dlp#8012

Authored by: Grub4K
  • Loading branch information
Grub4K authored and aalsuwaidi committed Apr 21, 2024
1 parent 803248c commit b723e8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions yt_dlp/networking/_urllib.py
Expand Up @@ -156,6 +156,8 @@ def brotli(data):
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):
Expand Down

0 comments on commit b723e8c

Please sign in to comment.