BUG/MINOR: http-client: Ignore 1XX interim responses in non-HTX mode
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Jul 2025 06:38:31 +0000 (08:38 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Oct 2025 13:42:26 +0000 (15:42 +0200)
commit552ea76e0b3e51a2df9d4d2244ad367095dbf1dd
tree00e065cd91d87d6d73e1caa75d436d9a86b6f3d5
parent1bd8f526a5a1319c16d09145def57b074e84c7dd
BUG/MINOR: http-client: Ignore 1XX interim responses in non-HTX mode

When the response is re-formatted in raw message, the 1XX interim responses
must be skipped. Otherwise, information of the first interim response will
be saved (status line and headers) and those from the final response will be
dropped.

Note that for now, in HTX-mode, the interim messages are removed.

This patch must be backported as far as 2.6.

(cherry picked from commit 9d10be33aebb08058c37d7dcd15874e42be74a29)
Signed-off-by: Amaury Denoyelle <adenoyelle@haproxy.com>
(cherry picked from commit 8abebc8d061c29dcdf511efba2321cf2a6df00d6)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 39b319f6c9d615c546631ea918daff11684c7b1b)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/http_client.c