+ fix bug to avoid kiwix-serve sporadicaly dies with big content

This commit is contained in:
kelson42 2012-11-22 21:46:06 +00:00
parent 1fe4e185f4
commit 1ef43029dc

View File

@ -354,6 +354,7 @@ static int accessHandlerCallback(void *cls,
/* Should be deflate */
bool deflated =
contentLength > KIWIX_MIN_CONTENT_SIZE_TO_DEFLATE &&
contentLength < COMPRESSOR_BUFFER_SIZE &&
acceptEncodingDeflate &&
mimeType.find("text/") != string::npos;