diff --git a/src/server/kiwix-serve.cpp b/src/server/kiwix-serve.cpp index d5cdfa9..02e638c 100644 --- a/src/server/kiwix-serve.cpp +++ b/src/server/kiwix-serve.cpp @@ -399,7 +399,7 @@ static int accessHandlerCallback(void *cls, contentLength > KIWIX_MIN_CONTENT_SIZE_TO_DEFLATE && contentLength < COMPRESSOR_BUFFER_SIZE && acceptEncodingDeflate && - mimeType.find("text/") != string::npos; + ( mimeType.find("text/") != string::npos || mimeType == application ); /* Compress the content if necessary */ if (deflated) {