diff --git a/plugin/business/pangu-http/src/pangu_http.cpp b/plugin/business/pangu-http/src/pangu_http.cpp index 3853526..9d3f464 100644 --- a/plugin/business/pangu-http/src/pangu_http.cpp +++ b/plugin/business/pangu-http/src/pangu_http.cpp @@ -585,6 +585,7 @@ void http_replace(const struct tfe_stream * stream, const struct tfe_http_sessio if (to_write_sess == NULL) //fail to wirte, abandon. { TFE_STREAM_LOG_INFO(stream, "tfe_http_session_allow_write() %s failed.", session->req->req_spec.uri); + ctx->action = PG_ACTION_NONE; tfe_http_session_detach(session); return; } @@ -602,6 +603,7 @@ void http_replace(const struct tfe_stream * stream, const struct tfe_http_sessio else { TFE_STREAM_LOG_INFO(stream, "Can only setup replace on REQ/RESP headers, detached."); + ctx->action = PG_ACTION_NONE; tfe_http_session_detach(session); return; } }