From 3bdca45a6eb7c6bb8c13cecda23e45170af3a1f8 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 3 Sep 2026 14:23:01 +0200 Subject: [PATCH] CLEANUP: h2: remove dead code around FND_AUTH in h2_prepare_htx_reqline() In h2_prepare_htx_reqline(), we test (fields & H2_PHDR_FND_AUTH) in the "else" branch of the same condition. Let's just drop it since it will never match. --- src/h2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/h2.c b/src/h2.c index c66f79dca..5eefe9d8b 100644 --- a/src/h2.c +++ b/src/h2.c @@ -252,8 +252,6 @@ static struct htx_sl *h2_prepare_htx_reqline(uint32_t fields, struct ist *phdr, else { /* usual schemes with or without authority, use origin form */ uri = phdr[H2_PHDR_IDX_PATH]; - if (fields & H2_PHDR_FND_AUTH) - flags |= HTX_SL_F_HAS_AUTHORITY; } /* The method is a non-empty token (RFC7231#4.1) */ -- 2.47.3