mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-24 04:20:56 -04:00
+ compress output if js mimetype
This commit is contained in:
parent
f689e0f9d9
commit
c8f6243411
@ -399,7 +399,7 @@ static int accessHandlerCallback(void *cls,
|
|||||||
contentLength > KIWIX_MIN_CONTENT_SIZE_TO_DEFLATE &&
|
contentLength > KIWIX_MIN_CONTENT_SIZE_TO_DEFLATE &&
|
||||||
contentLength < COMPRESSOR_BUFFER_SIZE &&
|
contentLength < COMPRESSOR_BUFFER_SIZE &&
|
||||||
acceptEncodingDeflate &&
|
acceptEncodingDeflate &&
|
||||||
mimeType.find("text/") != string::npos;
|
( mimeType.find("text/") != string::npos || mimeType == application );
|
||||||
|
|
||||||
/* Compress the content if necessary */
|
/* Compress the content if necessary */
|
||||||
if (deflated) {
|
if (deflated) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user