修复twitter页面无法显示问题,原因为注册END_STREAM时传参错误,导致获取取half值时方向错误

http2注册请求头时,不在区分post/get
This commit is contained in:
fengweihao
2019-07-08 16:58:04 +08:00
parent c3741ed8c0
commit 1e5a9a537d
2 changed files with 21 additions and 30 deletions

View File

@@ -1411,13 +1411,11 @@ void http_replace(const struct tfe_stream * stream, const struct tfe_http_sessio
rewrite_buff = NULL;
rewrite_sz = 0;
if (tfe_http_in_response(events) && in_resp_spec->content_type != NULL
&& (strstr(in_resp_spec->content_type, "charset=utf-8") ||
(strstr(in_resp_spec->content_type, "charset=UTF-8"))))
if (tfe_http_in_response(events) && in_resp_spec->content_type != NULL
&& strcasestr(in_resp_spec->content_type, "charset=utf-8"))
{
options = 1;
}
rewrite_sz = execute_replace_rule(__http_body, __http_body_len, r_zone,
rep_ctx->rule, rep_ctx->n_rule, &rewrite_buff, options);