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

pull/9/head
kelson42 14 years ago
parent 1fe4e185f4
commit 1ef43029dc

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

Loading…
Cancel
Save