mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-29 16:12:10 +00:00
BUG/MINOR: lua: Set right direction and flags on new HTTP objects
When a LUA HTTP object is created using the current TXN object, it is important to also set the right direction and flags, using ones from the TXN object. This patch may be backported to all supported branches with the lua support. But, it seems to have no impact for now.
This commit is contained in:
parent
55ae8a64e4
commit
256b69a82d
@ -5170,6 +5170,8 @@ static int hlua_http_new(lua_State *L, struct hlua_txn *txn)
|
||||
|
||||
htxn->s = txn->s;
|
||||
htxn->p = txn->p;
|
||||
htxn->dir = txn->dir;
|
||||
htxn->flags = txn->flags;
|
||||
|
||||
/* Pop a class stream metatable and affect it to the table. */
|
||||
lua_rawgeti(L, LUA_REGISTRYINDEX, class_http_ref);
|
||||
|
Loading…
Reference in New Issue
Block a user