修正HTTP用户覆盖应答设置后,原应答仍然转发的问题。

This commit is contained in:
Lu Qiuwen
2018-09-26 16:00:28 +08:00
parent e1122bb4bd
commit c7eeda0fb1
2 changed files with 11 additions and 6 deletions

View File

@@ -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. */