]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: hlua: hlua_channel_insert_data() behavior conflicts with documentation
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 4 Oct 2022 10:16:05 +0000 (12:16 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Oct 2022 09:03:56 +0000 (11:03 +0200)
commitafb7dafb44d240c9c306a41905812a40d700086c
treee421f8d1c07ca2e076b3bb934bd26ba45b664bbb
parent2e2b79d157944d12922ae7ad487247259f3e6d70
BUG/MINOR: hlua: hlua_channel_insert_data() behavior conflicts with documentation

Channel.insert(channel, string, [,offset]):

When no offset is provided, hlua_channel_insert_data() inserts
string at the end of incoming data.

This behavior conflicts with the documentation that explicitly says
that the default behavior is to insert the string in front of incoming data.

This patch fixes hlua_channel_insert_data() behavior so that it fully
complies with the documentation.

Thanks to Smackd0wn for noticing it.

This could be backported to 2.6 and 2.5
src/hlua.c