U++ framework
Do not panic. Ask here before giving up.

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 Go to previous messageGo to previous message
zsolt is currently offline  zsolt
Messages: 705
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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Any Example of Inverse a Matrix in U++?
Next Topic: Public access to Argv0__[]
Goto Forum:
  


Current Time: Sat Sep 05 14:32:59 GMT+2 2026

Total time taken to generate the page: 0.00648 seconds