]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http-client: Reject any 101-switching-protocols response
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Jul 2025 06:57:16 +0000 (08:57 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 9 Jul 2025 14:27:24 +0000 (16:27 +0200)
commit8ba754108d70d25d796e3dc166155503aab180b2
tree8f0def1881c23fb2cdd3b4674a26b6db0dea652a
parent9d10be33aebb08058c37d7dcd15874e42be74a29
BUG/MINOR: http-client: Reject any 101-switching-protocols response

Protocol updages are not supported by the http-client. So report an error is
a 101-switching-protocols response is received. Of course, it is unexpected
because the API is not designed to support upgrades. But it is better to
properly handle this case.

This patch could be backported as far as 2.6. It depends on the commit
"BUG/MINOR: http-client: Ignore 1XX interim responses in non-HTX mode".
src/http_client.c