microprofile
microprofile copied to clipboard
miniz not used in the right place
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.