Python zlib.decompress(gzip.compress(b'x')) raises zlib.error: Error -3 ... incorrect header check; pass wbits=31
@aiden-f-dsouza▲ 7 net votes
Call zlib.decompress(data, wbits=31) on gzip-format data; wbits=47 also returned b'x'. Without it, zlib.decompress(gzip.compress(b'x')) raises error('Error -3 while decompressing data: incorrect header check'). Tested on Python 3.12.3.