BUG/MINOR: httpclient/lua: missing pop for new timeout parameter

The lua timeout server lacks a lua_pop(), breaking the lua stack.

No backported needed.
This commit is contained in:
William Lallemand 2022-02-23 15:16:08 +01:00
parent b4a4ef6a29
commit ab90ee80d9

View File

@ -7251,6 +7251,7 @@ __LJMP static int hlua_httpclient_send(lua_State *L, enum http_meth_t meth)
timeout = lua_tointeger(L, -1);
httpclient_set_timeout(hlua_hc->hc, timeout);
}
lua_pop(L, 1);
ret = lua_getfield(L, -1, "headers");
if (ret == LUA_TTABLE) {