BUG/MINOR: httpclient/lua: don't pop the lua stack when getting headers
authorWilliam Lallemand <wlallemand@haproxy.org>
Fri, 14 Jan 2022 16:59:01 +0000 (17:59 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 26 Jan 2022 03:35:04 +0000 (04:35 +0100)
commitbf45c72a4f39048a7e329dfbc98a39ad9f9c2f8a
tree73208efae27a59d0a2de74300dc3cd889825f7f6
parent262ec6177eaeb1b78eccffe57b20f215045b4bee
BUG/MINOR: httpclient/lua: don't pop the lua stack when getting headers

hlua_httpclient_table_to_hdrs() does a lua_pop(L, 1) at the end of the
function, this is supposed to be done in the caller and it is already be
done in hlua_httpclient_send().

This call has the consequence of poping the next parameter of the
httpclient, ignoring it.

This patch fixes the issue by removing the lua_pop(L, 1).

Must be backported in 2.5.

(cherry picked from commit 01e2be84d746c5203f7c5723bb6ca9e469026c3d)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/hlua.c