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:
parent
b4a4ef6a29
commit
ab90ee80d9
@ -7251,6 +7251,7 @@ __LJMP static int hlua_httpclient_send(lua_State *L, enum http_meth_t meth)
|
|||||||
timeout = lua_tointeger(L, -1);
|
timeout = lua_tointeger(L, -1);
|
||||||
httpclient_set_timeout(hlua_hc->hc, timeout);
|
httpclient_set_timeout(hlua_hc->hc, timeout);
|
||||||
}
|
}
|
||||||
|
lua_pop(L, 1);
|
||||||
|
|
||||||
ret = lua_getfield(L, -1, "headers");
|
ret = lua_getfield(L, -1, "headers");
|
||||||
if (ret == LUA_TTABLE) {
|
if (ret == LUA_TTABLE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user