MINOR: htx/channel: Add a function to copy an HTX message in a channel's buffer
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Jan 2020 10:53:18 +0000 (11:53 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Feb 2020 13:55:16 +0000 (14:55 +0100)
commit7651362e52af556e900e461c0c5c0d87a8c3c51a
tree5943b2d9f163af54eb663d04e22230a0a03ccf1e
parent0ea0c86753ea55123da51cfce3276792e124f2e4
MINOR: htx/channel: Add a function to copy an HTX message in a channel's buffer

The channel_htx_copy_msg() function can now be used to copy an HTX message in a
channel's buffer. This function takes care to not overwrite existing data.

This patch depends on the commit "MINOR: htx: Add a function to append an HTX
message to another one". Both are mandatory to fix a bug in
http_reply_and_close() function. Be careful to backport both first.
include/proto/channel.h