在HttpParser中集成解压缩模块并编写对应的单元测试用例。

This commit is contained in:
Lu Qiuwen
2018-09-27 15:12:18 +08:00
parent 8a4f02fbb8
commit f47603c178
4 changed files with 963 additions and 18 deletions

View File

@@ -66,7 +66,7 @@ struct hf_content_converter * hf_content_converter_create(enum hf_content_conv_w
}
else if (content_encode == HTTP_ACCEPT_ENCODING_DEFLATE)
{
ret = inflateInit(cv_object->z_stream_ptr);
ret = inflateInit2(cv_object->z_stream_ptr, -MAX_WBITS);
}
if (ret != Z_OK) goto __errout;