From 827defccda290bd299838ff24ce4871d5c435747 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 11 May 2026 15:27:06 +0200 Subject: [PATCH] CLEANUP: cache: remove redundant res_htx assignment in http_cache_io_handler() It's probably a leftover of an old check, res_htx is assigned twice the same way. Let's just drop one. --- src/cache.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/cache.c b/src/cache.c index 4f4870524..0c27eec1e 100644 --- a/src/cache.c +++ b/src/cache.c @@ -1801,8 +1801,6 @@ static void http_cache_io_handler(struct appctx *appctx) goto exit; } - res_htx = htx_from_buf(&appctx->outbuf); - len = first->len - sizeof(*cache_ptr) - ctx->sent; res_htx = htx_from_buf(&appctx->outbuf); -- 2.47.3