MINOR: htx: Add a function to append an HTX message to another one
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Jan 2020 10:47:53 +0000 (11:47 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Feb 2020 13:54:47 +0000 (14:54 +0100)
commit0ea0c86753ea55123da51cfce3276792e124f2e4
tree44571aabe02a016cc731db858d789873106efadf
parent0a589fde7c67cfaf730e7d8b157b116364690cc0
MINOR: htx: Add a function to append an HTX message to another one

the htx_append_msg() function can now be used to append an HTX message to
another one. All the message is copied or nothing. If an error occurs during the
copy, all changes are rolled back.

This patch is mandatory to fix a bug in http_reply_and_close() function. Be
careful to backport it first.
include/common/htx.h
src/htx.c