Skip to content

Commit

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

Authored by: Grub4K
  • Loading branch information
Grub4K committed Sep 2, 2023
1 parent 7237c8d commit 77bff23
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 77bff23

Please sign in to comment.