mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-24 21:06:42 -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 */
|
||||
bool deflated =
|
||||
contentLength > KIWIX_MIN_CONTENT_SIZE_TO_DEFLATE &&
|
||||
contentLength < COMPRESSOR_BUFFER_SIZE &&
|
||||
acceptEncodingDeflate &&
|
||||
mimeType.find("text/") != string::npos;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user