Home » U++ Library support » U++ Core » InFilterStream::Out() is buggy: a possible bugfix
Re: InFilterStream::Out() is buggy: a possible bugfix [message #56804 is a reply to message #56800] |
Sat, 17 April 2021 06:27 |
zsolt
Messages: 698 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
Zlib uses WhenOut to push the gzip header, so it is missing from the output:
void Zlib::Compress()
{
Begin();
if(deflateInit2(&z, compression_level, Z_DEFLATED,
hdr && !gzip ? MAX_WBITS : -MAX_WBITS, DEF_MEM_LEVEL,
Z_DEFAULT_STRATEGY) != Z_OK)
Panic("deflateInit2 failed");
mode = DEFLATE;
if(gzip)
WhenOut(sGZip_header, 10);
}
[Updated on: Sat, 17 April 2021 06:29] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Wed Jun 05 18:05:04 CEST 2024
Total time taken to generate the page: 0.01717 seconds
|