修复tfe_http_in_request中漏判EV_HTTP_REQ_END状态的bug。

This commit is contained in:
zhengchao
2018-11-20 15:49:25 +08:00
parent 5ce7b9f2fc
commit 769e7cc37d

View File

@@ -430,7 +430,7 @@ static inline struct tfe_http_half * tfe_http_session_response_create(struct tfe
static inline int tfe_http_in_request(enum tfe_http_event events)
{
if ((events & EV_HTTP_REQ_HDR) | (events & EV_HTTP_REQ_BODY_BEGIN) | (events & EV_HTTP_REQ_BODY_END)
| (events & EV_HTTP_REQ_BODY_CONT))
| (events & EV_HTTP_REQ_BODY_CONT)| (events & EV_HTTP_REQ_END))
{
return 1;
}