mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-09 08:51:28 -04:00
BUG/MINOR: httpclient/lua: misplaced luaL_buffinit()
Some luaL_buffinit() call was done before the push of the variable name, where it seems to work correctly with lua < 5.4.3, it brokes systematically on this version. This patch inverts the pushstring and the buffinit.
This commit is contained in:
parent
7da35bff9f
commit
d1187eb3e1
1 changed files with 1 additions and 1 deletions
|
|
@ -7200,8 +7200,8 @@ rcv:
|
|||
/* we return a "res" object */
|
||||
lua_newtable(L);
|
||||
|
||||
luaL_buffinit(L, &hlua_hc->b);
|
||||
lua_pushstring(L, "body");
|
||||
luaL_buffinit(L, &hlua_hc->b);
|
||||
|
||||
MAY_LJMP(hlua_yieldk(L, 0, 0, hlua_httpclient_rcv_yield, TICK_ETERNITY, 0));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue