microprofile icon indicating copy to clipboard operation
microprofile copied to clipboard

miniz not used in the right place

Open adah1972 opened this issue 1 year ago • 5 comments

Currently MICROPROFILE_MINIZ is defined to 1 in the demos and "miniz.c" is included there. However, no one really uses it. I also checked the web server response and found no deflate.

I then moved the MICROPROFILE_MINIZ-related stuff to the beginning of microprofile.cpp (I also needed to copy the miniz.c file). Now I can really see "Content-Encoding: deflate" in the HTTP response header.

So I think the source and demo files should be changed, and miniz.c should have only one copy and be in the same directory as microprofile.cpp.

adah1972 avatar Jun 30 '23 14:06 adah1972