修正HTTP用户覆盖应答设置后,原应答仍然转发的问题。
This commit is contained in:
@@ -195,6 +195,13 @@ enum tfe_stream_action __http_connection_entry_on_response(const struct tfe_stre
|
||||
|
||||
/* Set callback, this callback used to raise business event */
|
||||
hf_private_set_callback(hf_private_resp_in, __user_event_dispatch, __closure, free);
|
||||
|
||||
/* Setup user's action */
|
||||
if (hs_private->hf_private_resp_user != NULL)
|
||||
{
|
||||
hf_private_resp_in->is_user_stream_action_set = true;
|
||||
hf_private_resp_in->user_stream_action = ACTION_DROP_DATA;
|
||||
}
|
||||
}
|
||||
|
||||
/* Parse the content, the data which in defered state has been ignored. */
|
||||
|
||||
Reference in New Issue
Block a user