bugfix: 修改brotli压缩等级

This commit is contained in:
fengweihao
2021-09-13 17:12:18 +08:00
parent 8d8b5eb039
commit 745187d0a3
3 changed files with 20 additions and 19 deletions

View File

@@ -249,6 +249,8 @@ struct hf_content_compress * hf_content_compress_create(unsigned int content_enc
{
cv_object->brenc_state = BrotliEncoderCreateInstance(NULL, NULL, NULL);
if (unlikely(cv_object->brenc_state == NULL)) goto __errout;
BrotliEncoderSetParameter(cv_object->brenc_state, BROTLI_PARAM_QUALITY, 3);
}
return cv_object;