From a950c4b72dbc1747c1ae097681819cb7be6ce151 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 5 May 2026 11:15:26 +0200 Subject: [PATCH] BUG/MINOR: h2: add decoding for :protocol in traces Function h2_phdr_to_list() was missing the decoding for the :protocol header and would emit :UNKNOWN in this case. It's only used in traces so it's not important. The fix can be backported in all versions. --- include/haproxy/h2.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/haproxy/h2.h b/include/haproxy/h2.h index 4082b38a8..430774e76 100644 --- a/include/haproxy/h2.h +++ b/include/haproxy/h2.h @@ -331,6 +331,7 @@ static inline struct ist h2_phdr_to_ist(int phdr) case H2_PHDR_IDX_SCHM: return ist(":scheme"); case H2_PHDR_IDX_STAT: return ist(":status"); case H2_PHDR_IDX_HOST: return ist("Host"); + case H2_PHDR_IDX_PROT: return ist(":protocol"); default: return ist(":UNKNOWN"); } }