BUG/MINOR: http: Establish a tunnel for all 2xx responses to a CONNECT
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 7 Dec 2020 17:10:32 +0000 (18:10 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Dec 2020 14:05:57 +0000 (15:05 +0100)
commitc75668ebff81176f2d3974872af7df4d1decf817
tree8f8d6dc3d8a32b34c564cb1d9ef057d85162c6e5
parenta4009cd6103a92752db27c3a85051c6adcc832c1
BUG/MINOR: http: Establish a tunnel for all 2xx responses to a CONNECT

As stated in the rfc7231, section 4.3.6, an HTTP tunnel via a CONNECT method
is successfully established if the server replies with any 2xx status
code. However, only 200 responses are considered as valid. With this patch,
any 2xx responses are now considered to estalish the tunnel.

This patch may be backported on demand to all stable versions and adapted
for the legacy HTTP. It works this way since a very long time and nobody
complains.
src/h1_htx.c
src/http_ana.c
src/mux_h1.c