From: Willy Tarreau Date: Thu, 3 Sep 2026 12:23:01 +0000 (+0200) Subject: CLEANUP: h2: remove dead code around FND_AUTH in h2_prepare_htx_reqline() X-Git-Tag: v3.5-dev6~1 X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=3bdca45a6eb7c6bb8c13cecda23e45170af3a1f8;p=haproxy.git 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. --- 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) */