]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: h1: Don't mask websocket protocol if multiple protocols used
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 19 May 2026 09:15:38 +0000 (11:15 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 19 May 2026 15:50:50 +0000 (17:50 +0200)
commitb74b5289c8ab27002700416974867edc2ae0676c
treec0c6471f7a69ffd67492ef953d49568af8d85b9a
parent8dd49dfabaf60f95da0387d0c0b5d4060dc28a6b
BUG/MINOR: h1: Don't mask websocket protocol if multiple protocols used

During H1 message parsing, the Upgrade header values are checked to detect
"websocket" prototol, to properly handle websocket upgrades between H1 and
H2 and to possibly reject messages if mandatory headers are missing.

However, the flag is reset for each new Upgrade header and the information
may be lost. So never reset it.

This patch must be backported as far as 2.4.
reg-tests/http-messaging/websocket.vtc
src/h1.c