TSG-643 Deny动作配置对象请求体问题

增加按比例执行策略功能
This commit is contained in:
fengweihao
2020-04-29 14:00:13 +08:00
parent 04ed73db0e
commit d1712adca1
3 changed files with 115 additions and 6 deletions

View File

@@ -453,6 +453,18 @@ static inline int tfe_http_in_response(enum tfe_http_event events)
return !(tfe_http_in_request(events));
}
static inline int tfe_http_in_hdr(enum tfe_http_event events)
{
if ((events & EV_HTTP_REQ_HDR) | (events & EV_HTTP_REQ_END))
{
return 1;
}
else
{
return 0;
}
}
static inline struct tfe_http_half* tfe_http_session_request_duplicate(struct tfe_http_session * session)
{
struct http_field_name in_header_field{};