lib/zlib/GzipOutputStream: use MAX_WBITS

This commit is contained in:
Max Kellermann 2023-04-14 19:30:22 +02:00 committed by Max Kellermann
parent a58275591d
commit 517c234461
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ GzipOutputStream::GzipOutputStream(OutputStream &_next)
z.zfree = Z_NULL;
z.opaque = Z_NULL;
constexpr int windowBits = 15;
constexpr int windowBits = MAX_WBITS;
constexpr int gzip_encoding = 16;
int result = deflateInit2(&z, Z_DEFAULT_COMPRESSION, Z_DEFLATED,