BUG/MEDIUM: httpclient: Don't remove HTX header blocks before duplicating them
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Jun 2022 14:37:49 +0000 (16:37 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Jun 2022 15:20:57 +0000 (17:20 +0200)
commit18de6f28809fc4228866e7717161692d54f31ce4
tree9509840338aa0d4b60ba4edfc809907e3a85fdba
parentc642d7c131fe0cc29a5cd1feedef05e27a390403
BUG/MEDIUM: httpclient: Don't remove HTX header blocks before duplicating them

Commit 534645d6 ("BUG/MEDIUM: httpclient: Fix loop consuming HTX blocks from
the response channel") introduced a regression. When the response is
consumed, The HTX header blocks are removed before duplicating them. Thus,
the first header block is always lost.

This patch must be backported as far as 2.5.
src/http_client.c