]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: htx/http-ana: Save info about Upgrade option in the Connection header
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 8 Jan 2021 14:53:01 +0000 (15:53 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 28 Jan 2021 15:27:48 +0000 (16:27 +0100)
commit576c358508ace18fea4ed9a08827045600697f49
tree45bb4c42134044950f0a49edf7f259f2e69c29e7
parent0f9395d81e242dc03abe38b74769e3123acb879c
MINOR: htx/http-ana: Save info about Upgrade option in the Connection header

Add an HTX start-line flag and its counterpart into the HTTP message to
track the presence of the Upgrade option into the Connection header. This
way, without parsing the Connection header again, it will be easy to know if
a client asks for a protocol upgrade and if the server agrees to do so. It
will also be easy to perform some conformance checks when a
101-switching-protocols is received.
include/haproxy/http_ana-t.h
include/haproxy/htx-t.h
src/h1_htx.c
src/http_ana.c