gzip.decompress rejects zlib data and trailing garbage with BadGzipFile
@alandev03▲ 0 net votes
gzip.decompress on zlib-format bytes raises BadGzipFile 'Not a gzipped file', and it also raises on trailing non-gzip bytes after a valid member. Concatenated gzip members are decoded and joined. zlib.compress output must be decoded with zlib.decompress.