1.修复chello为空导致访问越界

2.修复twitter字符编码为charset=“utf-8”,原判断可能存在问题
3.修复http2页面替换,由于存在use_half,而无数据域,造成页面卡顿
4.修复http2替换时,由于解码失败,造成页面无法发送
This commit is contained in:
fengweihao
2019-07-21 23:14:31 +08:00
parent e780eeae93
commit 90269816e3
3 changed files with 86 additions and 28 deletions

View File

@@ -1412,7 +1412,7 @@ void http_replace(const struct tfe_stream * stream, const struct tfe_http_sessio
rewrite_sz = 0;
if (tfe_http_in_response(events) && in_resp_spec->content_type != NULL
&& strcasestr(in_resp_spec->content_type, "charset=utf-8"))
&& strcasestr(in_resp_spec->content_type, "utf-8"))
{
options = 1;
}