mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-26 22:00:38 -04:00
+ fix bug to avoid kiwix-serve sporadicaly dies with big content
This commit is contained in:
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…
x
Reference in New Issue
Block a user