From 67bbf682a093af24d8fcae958894c0140b811fc0 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Wed, 8 Jul 2026 16:22:58 +0200 Subject: [PATCH] MINOR: httpclient: Don't manually set HTX_FL_EOM flag after calling htx_xfer() The htx_xfer() function already takes care to copy HTX_FL_EOM flag when it is required. So there is no reason to still do it in the HTTP client I/O handler function. --- src/http_client.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/http_client.c b/src/http_client.c index 5e0b1ce97..96d55ee80 100644 --- a/src/http_client.c +++ b/src/http_client.c @@ -735,9 +735,6 @@ void httpclient_applet_io_handler(struct appctx *appctx) else applet_fl_clr(appctx, APPCTX_FL_INBLK_FULL); - if (htx->flags & HTX_FL_EOM) - hc_htx->flags |= HTX_FL_EOM; - htx_to_buf(hc_htx, &hc->res.buf); } else { @@ -825,9 +822,6 @@ void httpclient_applet_io_handler(struct appctx *appctx) else applet_fl_clr(appctx, APPCTX_FL_INBLK_FULL); - if (htx_is_empty(htx) && (htx->flags & HTX_FL_EOM)) - hc_htx->flags |= HTX_FL_EOM; - htx_to_buf(hc_htx, &hc->res.buf); } else { -- 2.47.3