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.
This commit is contained in:
Willy Tarreau 2026-05-05 11:15:26 +02:00
parent 47bb725d88
commit a950c4b72d

View File

@ -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");
}
}