修复twitter页面无法显示问题,原因为注册END_STREAM时传参错误,导致获取取half值时方向错误
http2注册请求头时,不在区分post/get
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user