1.修复bug268js注入无效

This commit is contained in:
fengweihao
2019-06-17 21:28:48 +08:00
parent d197723309
commit 43f4788c33
2 changed files with 8 additions and 6 deletions

View File

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