]> git.kaiwu.me - haproxy.git/commitdiff
BUG/MINOR: h2: add decoding for :protocol in traces
authorWilly Tarreau <w@1wt.eu>
Tue, 5 May 2026 09:15:26 +0000 (11:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 May 2026 12:09:49 +0000 (14:09 +0200)
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

index 4082b38a80f9904d518bbd9bd9f852712a3d3d9b..430774e769819f5f05298b9ac2378ccd8b3a4b47 100644 (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");
        }
 }