CLEANUP: applet: use the appctx's endp instead of cs->endp
The few applets that set CS_EP_EOI or CS_EP_ERROR used to set it on the
endpoint retrieved from the conn_stream while it's already available on
the appctx itself. Better use the appctx one to limit the unneeded
interactions between the two sides.
diff --git a/src/cache.c b/src/cache.c
index f62aff8..2e5c5a4 100644
--- a/src/cache.c
+++ b/src/cache.c
@@ -1524,8 +1524,8 @@
if (appctx->st0 == HTX_CACHE_EOM) {
/* no more data are expected. */
res_htx->flags |= HTX_FL_EOM;
- cs->endp->flags |= CS_EP_EOI;
res->flags |= CF_EOI;
+ appctx->endp->flags |= CS_EP_EOI;
appctx->st0 = HTX_CACHE_END;
}