MINOR: htx: Skip headers with no value when adding a header list to a message

When the header list is added, after the message parsing, headers with no
value are now ignored. It is not the same than headers with empty value
fields. Only headers with a NULL pointer as value are skipped. This only
happens if the header value is removed during the message
parsing. Concretly, such headers are now ignored when htx_add_all_headers()
is called. However, htx_add_header() is not affected by this change.

Symetrically, the same is true for trailers. It may be backported to 2.4
because of the previous fix ("BUG/MEDIUM: mux-h1: Remove "Upgrade:" header
for requests with payload").

(cherry picked from commit f079f44096cf78c18880e5b0d9279a168bd4b44e)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed